recursive calls to sametest routine were wrong; How could this ever work?
This commit is contained in:
parent
eb2a76270f
commit
9197c959dc
|
@ -271,13 +271,13 @@ sametest(s1,s2,e1,e2)
|
||||||
case ROTATE:
|
case ROTATE:
|
||||||
case SAMEEXT:
|
case SAMEEXT:
|
||||||
case SAMENAM:
|
case SAMENAM:
|
||||||
return (sametest(e1->exp_left,e2->exp_left) &&
|
return (sametest(s1,s2,e1->exp_left,e2->exp_left) &&
|
||||||
sametest(e1->exp_right,e2->exp_right));
|
sametest(s1,s2,e1->exp_right,e2->exp_right));
|
||||||
case NOT:
|
case NOT:
|
||||||
case COMP:
|
case COMP:
|
||||||
case UPLUS:
|
case UPLUS:
|
||||||
case UMINUS:
|
case UMINUS:
|
||||||
return sametest(e1->exp_left,e2->exp_left);
|
return sametest(s1,s2,e1->exp_left,e2->exp_left);
|
||||||
case DEFINED:
|
case DEFINED:
|
||||||
case UNDEFINED:
|
case UNDEFINED:
|
||||||
case INT:
|
case INT:
|
||||||
|
|
Loading…
Reference in a new issue