summaryrefslogtreecommitdiff
path: root/libs/python/src/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/python/src/list.cpp')
-rw-r--r--libs/python/src/list.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/python/src/list.cpp b/libs/python/src/list.cpp
index 77e616881a..69f6da4753 100644
--- a/libs/python/src/list.cpp
+++ b/libs/python/src/list.cpp
@@ -10,11 +10,11 @@ namespace boost { namespace python { namespace detail {
detail::new_non_null_reference list_base::call(object const& arg_)
{
+ union{ PyTypeObject *ptop; PyObject *pop; }pun = { &PyList_Type };
return (detail::new_non_null_reference)
(expect_non_null)(
PyObject_CallFunction(
- (PyObject*)&PyList_Type, const_cast<char*>("(O)"),
- arg_.ptr()));
+ pun.pop, const_cast<char*>("(O)"), arg_.ptr()));
}
list_base::list_base()