We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3869e0 commit 757330bCopy full SHA for 757330b
src/interpreter.cc
@@ -995,12 +995,18 @@ static void opConditionalOperatorEqual(Program* program)
995
case VALUE_TYPE_INT:
996
result = value[1].integerValue == value[0].integerValue;
997
break;
998
+ case VALUE_TYPE_PTR:
999
+ result = (intptr_t)(value[1].integerValue) == (intptr_t)(value[0].pointerValue);
1000
+ break;
1001
default:
1002
assert(false && "Should be unreachable");
1003
}
1004
1005
case VALUE_TYPE_PTR:
1006
switch (value[0].opcode) {
1007
+ case VALUE_TYPE_INT:
1008
+ result = (intptr_t)(value[1].pointerValue) == (intptr_t)(value[0].integerValue);
1009
1010
1011
result = value[1].pointerValue == value[0].pointerValue;
1012
0 commit comments