Skip to content

Commit d763c72

Browse files
committed
fix use of NULL_VAL, also invalid when nan tagging is disabled
1 parent 34b0122 commit d763c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/wren_value.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ static void blackenClass(WrenVM* vm, ObjClass* classObj)
10291029

10301030
wrenGrayObj(vm, (Obj*)classObj->name);
10311031

1032-
if(classObj->attributes != NULL_VAL) wrenGrayObj(vm, AS_OBJ(classObj->attributes));
1032+
if(!IS_NULL(classObj->attributes)) wrenGrayObj(vm, AS_OBJ(classObj->attributes));
10331033

10341034
// Keep track of how much memory is still in use.
10351035
vm->bytesAllocated += sizeof(ObjClass);

0 commit comments

Comments
 (0)