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 4fe3403 commit c3fa0bdCopy full SHA for c3fa0bd
test/upcast.cpp
@@ -13,7 +13,7 @@ int main()
13
{
14
PyTypeObject o;
15
Y y;
16
- BOOST_TEST(&Py_REFCNT(boost::python::upcast<PyObject>(&o)) == &Py_REFCNT(&o));
17
- BOOST_TEST(&Py_REFCNT(boost::python::upcast<PyObject>(&y)) == &Py_REFCNT(&y));
+ BOOST_TEST(boost::python::upcast<PyObject>(&o) == reinterpret_cast<PyObject*>(&o));
+ BOOST_TEST(boost::python::upcast<PyObject>(&y) == &y);
18
return boost::report_errors();
19
}
0 commit comments