Lex integers as unsigned long instead of signed int, fixing the immediate test.

This commit is contained in:
Eric Anholt 2006-08-31 16:19:08 -07:00 committed by Damien Lespiau
parent d72f5c9828
commit d1b8791928

View File

@ -294,7 +294,7 @@ int saved_state = INITIAL;
} }
[0-9]* { [0-9]* {
yylval.integer = atoi(yytext); yylval.integer = strtoul(yytext, NULL, 10);
return INTEGER; return INTEGER;
} }