We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37f9b3b commit 6cd3c0dCopy full SHA for 6cd3c0d
src/memory.hpp
@@ -79,7 +79,7 @@ namespace boost { namespace python { namespace objects { \
79
\
80
Py_ssize_t holder_offset = reinterpret_cast<Py_ssize_t>(holder) \
81
- reinterpret_cast<Py_ssize_t>(&instance->storage) \
82
- + offsetof(instance_t, storage); \
+ + static_cast<Py_ssize_t>(offsetof(instance_t, storage)); \
83
Py_SIZE(instance) = holder_offset; \
84
85
protect.cancel(); \
0 commit comments