Minor fixes needed for building on windows.

This commit is contained in:
Jean-Luc Duprat
2012-08-30 10:56:13 -07:00
parent 11db466a88
commit e0490d0df5
2 changed files with 4 additions and 3 deletions

6
lex.ll
View File

@@ -600,11 +600,11 @@ lParseInteger(bool dotdotdot) {
else {
// No u or l suffix
// First, see if we can fit this into a 32-bit integer...
if (yylval.intVal <= 0x7fffffffLLU)
if (yylval.intVal <= 0x7fffffffULL)
return TOKEN_INT32_CONSTANT;
else if (yylval.intVal <= 0xffffffffLLU)
else if (yylval.intVal <= 0xffffffffULL)
return TOKEN_UINT32_CONSTANT;
else if (yylval.intVal <= 0x7fffffffffffffffLLU)
else if (yylval.intVal <= 0x7fffffffffffffffULL)
return TOKEN_INT64_CONSTANT;
else
return TOKEN_UINT64_CONSTANT;