parent
cee3af7cc4
commit
f3869e0acf
|
@ -909,10 +909,10 @@ static void opConditionalOperatorNotEqual(Program* program)
|
||||||
case VALUE_TYPE_PTR:
|
case VALUE_TYPE_PTR:
|
||||||
switch (value[0].opcode) {
|
switch (value[0].opcode) {
|
||||||
case VALUE_TYPE_INT:
|
case VALUE_TYPE_INT:
|
||||||
result = (intptr_t)(value[1].pointerValue) == (intptr_t)(value[0].integerValue);
|
result = (intptr_t)(value[1].pointerValue) != (intptr_t)(value[0].integerValue);
|
||||||
break;
|
break;
|
||||||
case VALUE_TYPE_PTR:
|
case VALUE_TYPE_PTR:
|
||||||
result = value[1].pointerValue == value[0].pointerValue;
|
result = value[1].pointerValue != value[0].pointerValue;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(false && "Should be unreachable");
|
assert(false && "Should be unreachable");
|
||||||
|
|
Loading…
Reference in New Issue