1
0
Fork 0

fixed compile warning

This commit is contained in:
Jan Steemann 2014-09-19 09:22:55 +02:00
parent 95c9a0ccba
commit b10c45af3e
2 changed files with 2 additions and 1 deletions

View File

@ -972,7 +972,7 @@ yy_find_action:
if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
{
int yyl;
for ( yyl = 0; yyl < yyleng; ++yyl )
for ( yyl = 0; yyl < (int) yyleng; ++yyl )
if ( yytext[yyl] == '\n' )
do{ yylineno++;

View File

@ -27,6 +27,7 @@ test -f ${OUTPUT} || exit 1
cat ${OUTPUT} \
| sed -e 's:( i = 0; i < _yybytes_len;:( i = 0; i < (int) _yybytes_len;:' \
| sed -e 's:( yyl = 0; yyl < yyleng; ++yyl ):( yyl = 0; yyl < (int) yyleng; ++yyl ):' \
| sed -e 's:yy_n_chars, (size_t) num_to_read );:yy_n_chars, (int) num_to_read );:' \
| sed -e 's:register ::g' \
> ${OUTPUT}.tmp