blueloveTH 2 vuotta sitten
vanhempi
commit
071550fb90
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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)
     PY_CLASS(VoidP, c, void_p)
 
 
     void* ptr;
     void* ptr;
+    VoidP(const void* ptr): ptr(const_cast<void*>(ptr)){}
     VoidP(void* ptr): ptr(ptr){}
     VoidP(void* ptr): ptr(ptr){}
 
 
     bool operator==(const VoidP& other) const {
     bool operator==(const VoidP& other) const {