1
0
forked from Mirror/wren

fix use of NULL_VAL, also invalid when nan tagging is disabled

This commit is contained in:
ruby0x1
2021-04-08 21:40:06 -07:00
parent 34b01226a4
commit d763c72e3d

View File

@ -1029,7 +1029,7 @@ static void blackenClass(WrenVM* vm, ObjClass* classObj)
wrenGrayObj(vm, (Obj*)classObj->name);
if(classObj->attributes != NULL_VAL) wrenGrayObj(vm, AS_OBJ(classObj->attributes));
if(!IS_NULL(classObj->attributes)) wrenGrayObj(vm, AS_OBJ(classObj->attributes));
// Keep track of how much memory is still in use.
vm->bytesAllocated += sizeof(ObjClass);