]> granicus.if.org Git - flex/commitdiff
Change variable types to silence compiler warnings; resolves #3552806
authornomis52 <nomis52@users.sourceforge.net>
Sat, 4 Aug 2012 19:03:31 +0000 (15:03 -0400)
committerWill Estes <westes575@gmail.com>
Sat, 4 Aug 2012 19:03:31 +0000 (15:03 -0400)
Signed-off-by: Will Estes <westes575@gmail.com>
flex.skl
gen.c

index 01d8204348d2e27f31bb54161263a4e5abffa493..7802f45bfa70124ee8930315545a90e626507bce 100644 (file)
--- a/flex.skl
+++ b/flex.skl
@@ -2360,7 +2360,7 @@ YY_BUFFER_STATE yy_scan_bytes  YYFARGS2( yyconst char *,yybytes, yy_size_t ,_yyb
        YY_BUFFER_STATE b;
        char *buf;
        yy_size_t n;
-       int i;
+       yy_size_t i;
     m4_dnl M4_YY_DECL_GUTS_VAR();
 
        /* Get memory for full buffer, including space for trailing EOB's. */
diff --git a/gen.c b/gen.c
index 5a5daef95758acdcd30131c418cad57a41d0f98f..8d24a86bde9cd296a4274e6c0ac06ac73a3dae87 100644 (file)
--- a/gen.c
+++ b/gen.c
@@ -1972,7 +1972,7 @@ void make_tables ()
                ("if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )");
        indent_up ();
        indent_puts ("{");
-       indent_puts ("int yyl;");
+       indent_puts ("yy_size_t yyl;");
        do_indent ();
        out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n",
                 yymore_used ? (yytext_is_array ? "YY_G(yy_prev_more_offset)" :