From 9197c959dcdf0cc866950ddea204b7fe784354e7 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 6 Oct 1989 14:53:49 +0000 Subject: [PATCH] recursive calls to sametest routine were wrong; How could this ever work? --- modules/src/em_opt/outputdfa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/src/em_opt/outputdfa.c b/modules/src/em_opt/outputdfa.c index a1609fb36..c0efccef5 100644 --- a/modules/src/em_opt/outputdfa.c +++ b/modules/src/em_opt/outputdfa.c @@ -271,13 +271,13 @@ sametest(s1,s2,e1,e2) case ROTATE: case SAMEEXT: case SAMENAM: - return (sametest(e1->exp_left,e2->exp_left) && - sametest(e1->exp_right,e2->exp_right)); + return (sametest(s1,s2,e1->exp_left,e2->exp_left) && + sametest(s1,s2,e1->exp_right,e2->exp_right)); case NOT: case COMP: case UPLUS: case UMINUS: - return sametest(e1->exp_left,e2->exp_left); + return sametest(s1,s2,e1->exp_left,e2->exp_left); case DEFINED: case UNDEFINED: case INT: