remove unnecessary int casts

This commit is contained in:
rsc 2005-12-29 20:57:29 +00:00
parent 586abfa4f5
commit 0ace33a415

View file

@ -56,7 +56,7 @@ yylook(void){
} }
# endif # endif
yyr = yyt; yyr = yyt;
if ( (int)yyt > (int)yycrank){ if (yyt > yycrank){
yyt = yyr + yych; yyt = yyr + yych;
if (yyt <= yytop && yyt->verify+yysvec == yystate){ if (yyt <= yytop && yyt->verify+yysvec == yystate){
if(yyt->advance+yysvec == YYLERR) /* error transitions */ if(yyt->advance+yysvec == YYLERR) /* error transitions */
@ -66,7 +66,7 @@ yylook(void){
} }
} }
# ifdef YYOPTIM # ifdef YYOPTIM
else if((int)yyt < (int)yycrank) { /* r < yycrank */ else if(yyt < yycrank) { /* r < yycrank */
yyt = yyr = yycrank+(yycrank-yyt); yyt = yyr = yycrank+(yycrank-yyt);
# ifdef LEXDEBUG # ifdef LEXDEBUG
if(debug)fprintf(yyout,"compressed state\n"); if(debug)fprintf(yyout,"compressed state\n");