From 6f45a8f4ef8e009b9fcf71df3ebf5024fd9c8544 Mon Sep 17 00:00:00 2001 From: Daniel Thayer Date: Tue, 25 Sep 2012 15:26:44 -0500 Subject: [PATCH] Fix parsing of integers This bug was seen on 32-bit systems, where the range of recognized values was less than the range of hexadecimal values. --- src/scan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan.l b/src/scan.l index 377c74cc1a..3f7337ac47 100644 --- a/src/scan.l +++ b/src/scan.l @@ -437,7 +437,7 @@ F RET_CONST(new Val(false, TYPE_BOOL)) } {D} { - RET_CONST(new Val(static_cast(strtoul(yytext, (char**) NULL, 10)), + RET_CONST(new Val(static_cast(strtoull(yytext, (char**) NULL, 10)), TYPE_COUNT)) } {FLOAT} RET_CONST(new Val(atof(yytext), TYPE_DOUBLE))