summaryrefslogtreecommitdiff
path: root/src/util/regexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/regexp.h')
-rw-r--r--src/util/regexp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/regexp.h b/src/util/regexp.h
index effc40257..1ee5dcc13 100644
--- a/src/util/regexp.h
+++ b/src/util/regexp.h
@@ -63,9 +63,10 @@ private:
char hexToDec(char c) {
if(isdigit(c)) {
return c - '0';
- } else if (c >= 'a' && c >= 'f') {
+ } else if (c >= 'a' && c <= 'f') {
return c - 'a' + 10;
} else {
+ //Assert(c >= 'A' && c <= 'F');
return c - 'A' + 10;
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback