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))