From 97cdfbedafab89cd343aef51f50bb07bb7f46ffb Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 1 Jul 2024 02:03:09 +0800 Subject: [PATCH] some fix --- include/pocketpy/pocketpy.h | 4 ++-- src/public/cast.c | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/pocketpy/pocketpy.h b/include/pocketpy/pocketpy.h index e436b547..9ad02efa 100644 --- a/include/pocketpy/pocketpy.h +++ b/include/pocketpy/pocketpy.h @@ -133,8 +133,8 @@ void py_setdict(py_Ref self, py_Name name, const py_Ref val); py_Ref py_getslot(const py_Ref self, int i); void py_setslot(py_Ref self, int i, const py_Ref val); -py_Ref py_getupvalue(py_Ref self); -void py_setupvalue(py_Ref self, const py_Ref val); +py_Ref py_getupvalue(py_Ref argv); +void py_setupvalue(py_Ref argv, const py_Ref val); /// Gets the attribute of the object. bool py_getattr(const py_Ref self, py_Name name, py_Ref out); diff --git a/src/public/cast.c b/src/public/cast.c index fede7ccc..2a949e28 100644 --- a/src/public/cast.c +++ b/src/public/cast.c @@ -22,9 +22,6 @@ bool py_castfloat(const py_Ref self, double* out){ case tp_float: *out = self->_f64; return true; - case tp_bool: - *out = self->extra; - return true; default: return false; }