Fix for membership test with constant LHS

This commit is contained in:
ceriel 1994-12-20 16:00:57 +00:00
parent 68cebfb733
commit 0ae5288ab7

View file

@ -939,7 +939,7 @@ CodeOper(expr, true_label, false_label)
break;
}
CodePExpr(rightop);
C_loc(rightop->nd_type->set_low-leftop->nd_INT);
C_loc(leftop->nd_INT - rightop->nd_type->set_low);
}
else {
CodePExpr(rightop);