aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/tmp-referencetopython
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/tmp-referencetopython')
-rw-r--r--sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.cpp2
-rw-r--r--sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.cpp b/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.cpp
index 7c20b9b58..8e351cedd 100644
--- a/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.cpp
+++ b/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.cpp
@@ -180,7 +180,7 @@ void pythonToCppPointer(SbkObjectType* type, PyObject* pyIn, void* cppOut)
{
assert(pyIn);
assert(cppOut);
- SbkObjectType* inType = (SbkObjectType*)pyIn->ob_type;
+ SbkObjectType* inType = (SbkObjectType*)Py_TYPE(pyIn);
if (ObjectType::hasCast(inType))
*((void**)cppOut) = ObjectType::cast(inType, (SbkObject*)pyIn, (PyTypeObject*)type);
else
diff --git a/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.h b/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.h
index f139a491a..cc9ea7a19 100644
--- a/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.h
+++ b/sources/shiboken2/libshiboken/tmp-referencetopython/sbkconverter.h
@@ -41,7 +41,7 @@
#define SBK_CONVERTER_H
#include <limits>
-#include <Python.h>
+#include "sbkpython.h"
#include "shibokenmacros.h"
#include "basewrapper.h"