Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
in HRegion.checkAndMutate, incorrect comparison results are used for <, <=, > and >=, as below:
switch (compareOp) {
case LESS:
matches = compareResult <= 0; // should be '<' here
break;
case LESS_OR_EQUAL:
matches = compareResult < 0; // should be '<=' here
break;
case EQUAL:
matches = compareResult == 0;
break;
case NOT_EQUAL:
matches = compareResult != 0;
break;
case GREATER_OR_EQUAL:
matches = compareResult > 0; // should be '>=' here
break;
case GREATER:
matches = compareResult >= 0; // should be '>' here
break;