summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1993-11-30 13:01:40 +0000
committerVern Paxson <vern@ee.lbl.gov>1993-11-30 13:01:40 +0000
commitdf6df2a091ecd4d8d3bdbfd558b99d4b9d31dee2 (patch)
treef7bd2296ed973823d872d7e0502c0eb3180d27ec /gen.c
parent1d99f7ba80a3bd6480f4121ab73deb2792d8bedd (diff)
Fixed nasty bug in short/long decl decision
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gen.c b/gen.c
index b9e36ca..6b766d2 100644
--- 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 );