tidy up warning

warning: incompatible pointer types passing 'ObjModule *' to parameter of type 'Obj *'
This commit is contained in:
ruby0x1
2025-03-11 17:06:45 -07:00
parent 415f7b24ac
commit 77aeb12ab8

View File

@ -1090,7 +1090,7 @@ static void blackenFn(WrenVM* vm, ObjFn* fn)
wrenGrayBuffer(vm, &fn->constants);
// Mark the module it belongs to, in case it's been unloaded.
wrenGrayObj(vm, fn->module);
wrenGrayObj(vm, (Obj*)fn->module);
// Keep track of how much memory is still in use.
vm->bytesAllocated += sizeof(ObjFn);