From e56e58c9175b84c72a7ede008277ca9582e40fbd Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 11 May 2024 13:02:21 +0800 Subject: [PATCH] fix a bug --- include/pocketpy/bindings.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/pocketpy/bindings.h b/include/pocketpy/bindings.h index b784f449..5b2aaae4 100644 --- a/include/pocketpy/bindings.h +++ b/include/pocketpy/bindings.h @@ -70,19 +70,19 @@ PyObject* VM::bind(PyObject* obj, const char* sig, Ret(*func)(Params...), BindTy template PyObject* VM::bind(PyObject* obj, const char* sig, Ret(T::*func)(Params...), BindType bt){ - auto proxy = new NativeProxyMethodC(func); + NativeProxyFuncCBase* proxy = new NativeProxyMethodC(func); return vm->bind(obj, sig, __proxy_wrapper, proxy, bt); } template PyObject* VM::bind(PyObject* obj, const char* sig, const char* docstring, Ret(*func)(Params...), BindType bt){ - auto proxy = new NativeProxyFuncC(func); + NativeProxyFuncCBase* proxy = new NativeProxyFuncC(func); return vm->bind(obj, sig, docstring, __proxy_wrapper, proxy, bt); } template PyObject* VM::bind(PyObject* obj, const char* sig, const char* docstring, Ret(T::*func)(Params...), BindType bt){ - auto proxy = new NativeProxyMethodC(func); + NativeProxyFuncCBase* proxy = new NativeProxyMethodC(func); return vm->bind(obj, sig, docstring, __proxy_wrapper, proxy, bt); }