fix a bug

This commit is contained in:
blueloveTH 2024-05-11 12:55:26 +08:00
parent a6a834da29
commit 7623542a47

View File

@ -64,7 +64,7 @@ inline PyObject* __proxy_wrapper(VM* vm, ArgsView args){
template<typename Ret, typename... Params>
PyObject* VM::bind(PyObject* obj, const char* sig, Ret(*func)(Params...), BindType bt){
auto proxy = new NativeProxyFuncC<Ret, Params...>(func);
NativeProxyFuncCBase* proxy = new NativeProxyFuncC<Ret, Params...>(func);
return vm->bind(obj, sig, __proxy_wrapper, proxy, bt);
}