summaryrefslogtreecommitdiff
path: root/libs/python/src/list.cpp
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 13:04:36 -0700
committerMyoungJune Park <mj2004.park@samsung.com>2016-04-07 11:45:09 +0900
commit0deb3b7a13d1892b84904b57bcdcfb92385d4700 (patch)
tree043bc4d98675221be8aad7ea423870c26f52599f /libs/python/src/list.cpp
parent733b5d5ae2c5d625211e2985ac25728ac3f54883 (diff)
downloadboost-0deb3b7a13d1892b84904b57bcdcfb92385d4700.tar.gz
boost-0deb3b7a13d1892b84904b57bcdcfb92385d4700.tar.bz2
boost-0deb3b7a13d1892b84904b57bcdcfb92385d4700.zip
Bump to boost 1.58.0 (rebase)
Change-Id: I434ed719a1e7980af8df2109b3c5cea0b574fb61 Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
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()