summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-08-15 21:23:18 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-08-15 21:23:18 +0000
commit201f2a86bf025726a59a27ff2bb146da95b4a8d6 (patch)
tree6ae082c078ef9265c14fdb3061e620d1a9d6ac21 /main.c
parent15a23d165c683c13a45ed9c6e08f926c5e4686aa (diff)
Fixed seg fault bug in ecs.
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index b415957..762d328 100644
--- a/main.c
+++ b/main.c
@@ -410,10 +410,6 @@ void check_options()
/* Create the alignment type. */
buf_strdefine(&userdef_buf,"YY_INT_ALIGNED",
long_align ? "long int" : "short int");
-
- /* Now map the equivalence class for NUL to its expected place. */
- ecgroup[0] = ecgroup[csize];
- NUL_ec = ABS( ecgroup[0] );
/* Dump the user defined preproc directives. */
if (userdef_buf.elts)
@@ -1667,6 +1663,10 @@ _( "Variable trailing context rules entail a large performance penalty\n" ) );
else
numecs = csize;
+ /* Now map the equivalence class for NUL to its expected place. */
+ ecgroup[0] = ecgroup[csize];
+ NUL_ec = ABS( ecgroup[0] );
+
if ( useecs )
ccl2ecl();
}