diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:04:54 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 19:00:15 +0900 |
commit | 11de24e3b46636390e81d680827bb541634d5d6a (patch) | |
tree | d745bc0201f5e67ac19a3c202a38d5a9424fa1fe /libs/python/src/dict.cpp | |
parent | 4b7d643389d1458ea53c7c08b17650a3889880f2 (diff) | |
download | boost-11de24e3b46636390e81d680827bb541634d5d6a.tar.gz boost-11de24e3b46636390e81d680827bb541634d5d6a.tar.bz2 boost-11de24e3b46636390e81d680827bb541634d5d6a.zip |
no type punning
Diffstat (limited to 'libs/python/src/dict.cpp')
-rw-r--r-- | libs/python/src/dict.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/python/src/dict.cpp b/libs/python/src/dict.cpp index 77d840d455..5e196ff678 100644 --- a/libs/python/src/dict.cpp +++ b/libs/python/src/dict.cpp @@ -28,9 +28,9 @@ namespace detail::new_reference dict_base::call(object const& arg_) { + union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyDict_Type }; return (detail::new_reference)PyObject_CallFunction( - (PyObject*)&PyDict_Type, const_cast<char*>("(O)"), - arg_.ptr()); + pun.pop, const_cast<char*>("(O)"), arg_.ptr()); } dict_base::dict_base() |