summaryrefslogtreecommitdiff
path: root/Src/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/math.c b/Src/math.c
index f970f3669..766dff679 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -378,8 +378,9 @@ zzlex(void)
break;
case '0':
if (*ptr == 'x' || *ptr == 'X') {
+ ptr++;
/* Should we set lastbase here? */
- yyval.u.l = zstrtol(++ptr, &ptr, lastbase = 16);
+ yyval.u.l = zstrtol(ptr, &ptr, lastbase = 16);
return NUM;
}
else if (isset(OCTALZEROES) &&