diff options
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() |