]> granicus.if.org Git - flex/commitdiff
Fixed nasty bug in short/long decl decision
authorVern Paxson <vern@ee.lbl.gov>
Tue, 30 Nov 1993 13:01:40 +0000 (13:01 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Tue, 30 Nov 1993 13:01:40 +0000 (13:01 +0000)
gen.c

diff --git a/gen.c b/gen.c
index b9e36ca7c4cbb63125851cee3205a8c893c3df22..6b766d23f4e9783da84b0c9ff50738e884137aab 100644 (file)
--- a/gen.c
+++ b/gen.c
@@ -920,7 +920,7 @@ void gentabs()
 
        total_states = lastdfa + numtemps;
 
-       printf( (total_states >= MAX_SHORT || long_align) ?
+       printf( (tblend >= MAX_SHORT || long_align) ?
                        C_long_decl : C_short_decl,
                "yy_base", total_states + 1 );
 
@@ -964,7 +964,7 @@ void gentabs()
 
        dataend();
 
-       printf( (tblend >= MAX_SHORT || long_align) ?
+       printf( (total_states >= MAX_SHORT || long_align) ?
                        C_long_decl : C_short_decl,
                "yy_nxt", tblend + 1 );
 
@@ -978,7 +978,7 @@ void gentabs()
 
        dataend();
 
-       printf( (tblend >= MAX_SHORT || long_align) ?
+       printf( (total_states >= MAX_SHORT || long_align) ?
                        C_long_decl : C_short_decl,
                "yy_chk", tblend + 1 );