diff --git a/include/boost/python/lvalue_from_pytype.hpp b/include/boost/python/lvalue_from_pytype.hpp index 019d4ae5..e15dfbbb 100644 --- a/include/boost/python/lvalue_from_pytype.hpp +++ b/include/boost/python/lvalue_from_pytype.hpp @@ -63,7 +63,7 @@ struct extract_member { static MemberType& execute(InstanceType& c) { - (void)c.ob_type; // static assertion + (void)Py_TYPE(&c); // static assertion return c.*member; } }; @@ -75,7 +75,7 @@ struct extract_identity { static InstanceType& execute(InstanceType& c) { - (void)c.ob_type; // static assertion + (void)Py_TYPE(&c); // static assertion return c; } };