Browse Source

fix a bug

blueloveTH 1 year ago
parent
commit
7623542a47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/pocketpy/bindings.h

+ 1 - 1
include/pocketpy/bindings.h

@@ -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);
 }