Ver Fonte

some fix

blueloveTH há 1 ano atrás
pai
commit
97cdfbedaf
2 ficheiros alterados com 2 adições e 5 exclusões
  1. 2 2
      include/pocketpy/pocketpy.h
  2. 0 3
      src/public/cast.c

+ 2 - 2
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);

+ 0 - 3
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;
     }