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 5b15163 commit ad9b858Copy full SHA for ad9b858
src/interpreter.cc
@@ -1127,6 +1127,16 @@ static void opConditionalOperatorLessThanEquals(Program* program)
1127
assert(false && "Should be unreachable");
1128
}
1129
break;
1130
+ // Nevada folks tend to use "object <= 0" to test objects for nulls.
1131
+ case VALUE_TYPE_PTR:
1132
+ switch (value[0].opcode) {
1133
+ case VALUE_TYPE_INT:
1134
+ result = (intptr_t)value[1].pointerValue <= (intptr_t)value[0].integerValue;
1135
+ break;
1136
+ default:
1137
+ assert(false && "Should be unreachable");
1138
+ }
1139
1140
default:
1141
1142
0 commit comments