Fix for membership test with constant LHS

This commit is contained in:
ceriel 1994-12-20 16:00:57 +00:00
parent 1aaab3dd69
commit 6871c56487

View File

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