diff --git a/include/pocketpy/cffi.h b/include/pocketpy/cffi.h index 94c9bfa9..ed4ad476 100644 --- a/include/pocketpy/cffi.h +++ b/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(ptr)){} VoidP(void* ptr): ptr(ptr){} bool operator==(const VoidP& other) const {