This commit is contained in:
blueloveTH 2024-07-01 02:03:09 +08:00
parent ac19ece535
commit 97cdfbedaf
2 changed files with 2 additions and 5 deletions

View File

@ -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); py_Ref py_getslot(const py_Ref self, int i);
void py_setslot(py_Ref self, int i, const py_Ref val); void py_setslot(py_Ref self, int i, const py_Ref val);
py_Ref py_getupvalue(py_Ref self); py_Ref py_getupvalue(py_Ref argv);
void py_setupvalue(py_Ref self, const py_Ref val); void py_setupvalue(py_Ref argv, const py_Ref val);
/// Gets the attribute of the object. /// Gets the attribute of the object.
bool py_getattr(const py_Ref self, py_Name name, py_Ref out); bool py_getattr(const py_Ref self, py_Name name, py_Ref out);

View File

@ -22,9 +22,6 @@ bool py_castfloat(const py_Ref self, double* out){
case tp_float: case tp_float:
*out = self->_f64; *out = self->_f64;
return true; return true;
case tp_bool:
*out = self->extra;
return true;
default: default:
return false; return false;
} }