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 113671d commit b065accCopy full SHA for b065acc
src/memory.hpp
@@ -77,8 +77,8 @@ namespace boost { namespace python { namespace objects { \
77
Holder* holder = Derived::construct(&instance->storage, (PyObject*)instance, x); \
78
holder->install(raw_result); \
79
\
80
- size_t holder_offset = reinterpret_cast<size_t>(holder) \
81
- - reinterpret_cast<size_t>(&instance->storage) \
+ Py_ssize_t holder_offset = reinterpret_cast<Py_ssize_t>(holder) \
+ - reinterpret_cast<Py_ssize_t>(&instance->storage) \
82
+ offsetof(instance_t, storage); \
83
Py_SIZE(instance) = holder_offset; \
84
0 commit comments