From: John Millaway Date: Thu, 15 Aug 2002 21:23:18 +0000 (+0000) Subject: Fixed seg fault bug in ecs. X-Git-Tag: flex-2-5-15~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=201f2a86bf025726a59a27ff2bb146da95b4a8d6;p=flex Fixed seg fault bug in ecs. --- 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(); }