diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-10-20 19:56:48 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:31 -0300 |
commit | b64c2001d14b8b1102af6b6029eb9c317e5d8008 (patch) | |
tree | 7f71a6115dc1467fd181784f2fd0cf55f5ce5ef0 /libshiboken/sbkconverter.cpp | |
parent | dc022d65ce87882fdf6add900038e957f399453b (diff) |
Make converter branch work on a Python3.2 setup.
Diffstat (limited to 'libshiboken/sbkconverter.cpp')
-rw-r--r-- | libshiboken/sbkconverter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/sbkconverter.cpp b/libshiboken/sbkconverter.cpp index b5223cc8a..79a2f65fa 100644 --- a/libshiboken/sbkconverter.cpp +++ b/libshiboken/sbkconverter.cpp @@ -222,7 +222,7 @@ void nonePythonToCppNullPtr(PyObject*, void* cppOut) void* cppPointer(PyTypeObject* desiredType, SbkObject* pyIn) { assert(pyIn); - SbkObjectType* inType = (SbkObjectType*)pyIn->ob_type; + SbkObjectType* inType = (SbkObjectType*)Py_TYPE(pyIn); if (ObjectType::hasCast(inType)) return ObjectType::cast(inType, pyIn, desiredType); return Object::cppPointer(pyIn, desiredType); |