aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index cf7aebb..0594d2c 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -54,7 +54,7 @@ parse_number(Parser *parser) {
54 if (c == '+') { 54 if (c == '+') {
55 c = sv_next(&tok.value); 55 c = sv_next(&tok.value);
56 } 56 }
57 if (c == '0') { 57 if (c == '0' && sv_peek(&tok.value) != '\0') {
58 c = sv_next(&tok.value); 58 c = sv_next(&tok.value);
59 if (c == 'x') { 59 if (c == 'x') {
60 base = 16; 60 base = 16;