]> granicus.if.org Git - flex/commitdiff
Fixed bug where YY_G(0) sometimes occurs (created by my previous commit.)
authorJohn Millaway <john43@users.sourceforge.net>
Thu, 19 Dec 2002 03:17:27 +0000 (03:17 +0000)
committerJohn Millaway <john43@users.sourceforge.net>
Thu, 19 Dec 2002 03:17:27 +0000 (03:17 +0000)
gen.c

diff --git a/gen.c b/gen.c
index 398f76e3298d0ed99cea29a747cd645bc8889c28..972d0d9f3075841cb35c55a83b073fc68cfe01cb 100644 (file)
--- a/gen.c
+++ b/gen.c
@@ -1985,9 +1985,9 @@ void make_tables ()
        indent_puts ("{");
        indent_puts ("int yyl;");
        do_indent ();
-       out_str ("for ( yyl = YY_G(%s); yyl < yyleng; ++yyl )\n",
-                yymore_used ? (yytext_is_array ? "yy_prev_more_offset" :
-                               "yy_more_len") : "0");
+       out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n",
+                yymore_used ? (yytext_is_array ? "YY_G(yy_prev_more_offset)" :
+                               "(yy_more_len)") : "0");
        indent_up ();
        indent_puts ("if ( yytext[yyl] == '\\n' )");
        indent_up ();