From 071550fb9060a64b1bca2172a5b3202e31d802a3 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 29 Sep 2023 20:08:29 +0800 Subject: [PATCH] ... --- include/pocketpy/cffi.h | 1 + 1 file changed, 1 insertion(+) 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 {