This commit is contained in:
blueloveTH 2023-09-29 20:03:43 +08:00
parent bd012dfece
commit 9c71710dbc
2 changed files with 1 additions and 6 deletions

View File

@ -55,7 +55,7 @@ struct VoidP{
static void _register(VM* vm, PyObject* mod, PyObject* type); static void _register(VM* vm, PyObject* mod, PyObject* type);
}; };
inline PyObject* py_var(VM* vm, void* p){ inline PyObject* py_var(VM* vm, const void* p){
return VAR_T(VoidP, p); return VAR_T(VoidP, p);
} }

View File

@ -608,11 +608,6 @@ inline PyObject* py_var(VM* vm, NoReturn val){
return vm->None; return vm->None;
} }
inline PyObject* py_var(VM* vm, PyObject* val){
PK_UNUSED(vm);
return val;
}
template<int ARGC> template<int ARGC>
PyObject* VM::bind_method(PyObject* obj, Str name, NativeFuncC fn) { PyObject* VM::bind_method(PyObject* obj, Str name, NativeFuncC fn) {
check_non_tagged_type(obj, tp_type); check_non_tagged_type(obj, tp_type);