blueloveTH hace 2 años
padre
commit
071550fb90
Se han modificado 1 ficheros con 1 adiciones y 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 {