diff options
author | Robert Larice <Robert.Larice@t-online.de> | 2016-02-26 20:23:05 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-02-26 20:23:05 -0500 |
commit | de03dfb8faf283a5e24556dd6d90180fd61b1df2 (patch) | |
tree | abce2902153ebf692552c5ddffe5962931210eb2 /src/gen.c | |
parent | a51bd6c3016176b83d30fc44818d4ba3b8c946ba (diff) |
Removed some type conversion warnings
Diffstat (limited to 'src/gen.c')
-rw-r--r-- | src/gen.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -763,7 +763,7 @@ void gen_next_compressed_state (char *char_map) --indent_level; indent_puts - ("yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];"); + ("yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];"); } @@ -1519,11 +1519,11 @@ void make_tables (void) if (yymore_used && !yytext_is_array) { indent_puts ("YY_G(yytext_ptr) -= YY_G(yy_more_len); \\"); indent_puts - ("yyleng = (size_t) (yy_cp - YY_G(yytext_ptr)); \\"); + ("yyleng = (int) (yy_cp - YY_G(yytext_ptr)); \\"); } else - indent_puts ("yyleng = (size_t) (yy_cp - yy_bp); \\"); + indent_puts ("yyleng = (int) (yy_cp - yy_bp); \\"); /* Now also deal with copying yytext_ptr to yytext if needed. */ skelout (); /* %% [3.0] - break point in skel */ @@ -1907,7 +1907,7 @@ void make_tables (void) outn ("\telse \\"); outn ("\t\t{ \\"); outn ("\t\terrno=0; \\"); - outn ("\t\twhile ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \\"); + outn ("\t\twhile ( (result = (int) fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \\"); outn ("\t\t\t{ \\"); outn ("\t\t\tif( errno != EINTR) \\"); outn ("\t\t\t\t{ \\"); |