Ver Fonte

fix a bug

blueloveTH há 2 anos atrás
pai
commit
7623542a47
1 ficheiros alterados com 1 adições e 1 exclusões
  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);
 }