diff --git a/src/interpreter.cc b/src/interpreter.cc index 104d0e2..6f0048b 100644 --- a/src/interpreter.cc +++ b/src/interpreter.cc @@ -909,10 +909,10 @@ static void opConditionalOperatorNotEqual(Program* program) case VALUE_TYPE_PTR: switch (value[0].opcode) { 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; case VALUE_TYPE_PTR: - result = value[1].pointerValue == value[0].pointerValue; + result = value[1].pointerValue != value[0].pointerValue; break; default: assert(false && "Should be unreachable");