diff options
Diffstat (limited to 'src/label.c')
-rw-r--r-- | src/label.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/label.c b/src/label.c index c15627f..75270ef 100644 --- a/src/label.c +++ b/src/label.c @@ -277,17 +277,17 @@ int LabelExpand(const char *expr, int *result) { found = ParseBase(expr + 1, 16, result, '\0'); } - else if (last == 'h') + else if (last == 'h' || last == 'H') { - found = ParseBase(expr, 16, result, 'h'); + found = ParseBase(expr, 16, result, last); } else if (first == '%') { found = ParseBase(expr, 2, result, '\0'); } - else if (last == 'b') + else if (last == 'b' || last == 'B') { - found = ParseBase(expr, 2, result, 'b'); + found = ParseBase(expr, 2, result, last); } else if (first == '\'' && last == '\'' && len == 3) { |