Skip to content

Commit 6cd3c0d

Browse files
committed
[Memory] Remove useless warning
1 parent 37f9b3b commit 6cd3c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace boost { namespace python { namespace objects { \
7979
\
8080
Py_ssize_t holder_offset = reinterpret_cast<Py_ssize_t>(holder) \
8181
- reinterpret_cast<Py_ssize_t>(&instance->storage) \
82-
+ offsetof(instance_t, storage); \
82+
+ static_cast<Py_ssize_t>(offsetof(instance_t, storage)); \
8383
Py_SIZE(instance) = holder_offset; \
8484
\
8585
protect.cancel(); \

0 commit comments

Comments
 (0)