mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-09 21:28:39 +01:00
tidy up warning
warning: incompatible pointer types passing 'ObjModule *' to parameter of type 'Obj *'
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user