From 201f2a86bf025726a59a27ff2bb146da95b4a8d6 Mon Sep 17 00:00:00 2001 From: John Millaway Date: Thu, 15 Aug 2002 21:23:18 +0000 Subject: Fixed seg fault bug in ecs. --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.c') 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(); } -- cgit v1.2.3