From c219ae50c4aa180934ca5b8f0ca6aa5e701d3465 Mon Sep 17 00:00:00 2001 From: Haoyu Bai Date: Sat, 4 Jul 2009 16:18:56 +0000 Subject: [PATCH] .ob_type -> Py_TYPE() usage change [SVN r54646] --- include/boost/python/lvalue_from_pytype.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } };