blueloveTH %!s(int64=3) %!d(string=hai) anos
pai
achega
071550fb90
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      include/pocketpy/cffi.h

+ 1 - 0
include/pocketpy/cffi.h

@@ -33,6 +33,7 @@ struct VoidP{
     PY_CLASS(VoidP, c, void_p)
 
     void* ptr;
+    VoidP(const void* ptr): ptr(const_cast<void*>(ptr)){}
     VoidP(void* ptr): ptr(ptr){}
 
     bool operator==(const VoidP& other) const {