From 7623542a47d4988dcd92eea361929d986513c234 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 11 May 2024 12:55:26 +0800 Subject: [PATCH] fix a bug --- include/pocketpy/bindings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }