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 1d5fb45 commit a779b14Copy full SHA for a779b14
vm.c
@@ -113,9 +113,9 @@ bool is_falsey(Value value) {
113
bool values_equal(Value a, Value b) {
114
if (a.type != b.type) return false;
115
switch (a.type) {
116
- case VAL_BOOL: return AS_BOOL(a) == AS_BOOL(b);
117
- case VAL_NIL: return true;
118
- case VAL_NUMBER: return AS_NUMBER(a) == AS_NUMBER(b);
+ case BOOL_VAL: return AS_BOOL(a) == AS_BOOL(b);
+ case NIL_VAL: return true;
+ case NUMBER_VAL: return AS_NUMBER(a) == AS_NUMBER(b);
119
default: return false; // Unreachable
120
}
121
0 commit comments