Fix various warnings / build issues on Windows

This commit is contained in:
Matt Pharr
2011-12-15 12:06:38 -08:00
parent 8d1b77b235
commit e82a720223
7 changed files with 14 additions and 13 deletions

4
lex.ll
View File

@@ -184,12 +184,12 @@ L?\"(\\.|[^\\"])*\" { lStringConst(yylval, yylloc); return TOKEN_STRING_LITERAL;
{FLOAT_NUMBER} {
yylval->floatVal = atof(yytext);
yylval->floatVal = (float)atof(yytext);
return TOKEN_FLOAT_CONSTANT;
}
{HEX_FLOAT_NUMBER} {
yylval->floatVal = lParseHexFloat(yytext);
yylval->floatVal = (float)lParseHexFloat(yytext);
return TOKEN_FLOAT_CONSTANT;
}