diff --git a/include/pocketpy/bindings.h b/include/pocketpy/bindings.h index cf3119d0..b784f449 100644 --- a/include/pocketpy/bindings.h +++ b/include/pocketpy/bindings.h @@ -64,7 +64,7 @@ inline PyObject* __proxy_wrapper(VM* vm, ArgsView args){ template PyObject* VM::bind(PyObject* obj, const char* sig, Ret(*func)(Params...), BindType bt){ - auto proxy = new NativeProxyFuncC(func); + NativeProxyFuncCBase* proxy = new NativeProxyFuncC(func); return vm->bind(obj, sig, __proxy_wrapper, proxy, bt); }