summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-03-16 19:54:51 -0300
committerLauro Neto <lauro.neto@openbossa.org>2010-03-22 15:57:26 -0300
commit60e06714df272ceac68e7e4c46116cd11e6f8eaa (patch)
treec55a2e302abfc37cdac3a6c7797b5ba78eaccfc2
parentd96d5df9b8d3f5caaa66a7f75f2f8fe1a1395159 (diff)
downloadshiboken-60e06714df272ceac68e7e4c46116cd11e6f8eaa.tar.gz
shiboken-60e06714df272ceac68e7e4c46116cd11e6f8eaa.tar.xz
shiboken-60e06714df272ceac68e7e4c46116cd11e6f8eaa.zip
Fix SbkBaseWrapper_Check cast
-rw-r--r--libshiboken/basewrapper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h
index 9d683394..ea234b74 100644
--- a/libshiboken/basewrapper.h
+++ b/libshiboken/basewrapper.h
@@ -172,7 +172,7 @@ inline bool isShibokenType(const PyObject* pyObj)
*/
#define Shiboken_TypeCheck(pyobj, type) (PyObject_TypeCheck(pyobj, SbkType<type>()))
-#define SbkBaseWrapper_Check(op) PyObject_TypeCheck(op, &Shiboken::SbkBaseWrapper_Type)
+#define SbkBaseWrapper_Check(op) PyObject_TypeCheck(op, (PyTypeObject*)&Shiboken::SbkBaseWrapper_Type)
#define SbkBaseWrapper_CheckExact(op) ((op)->ob_type == &Shiboken::SbkBaseWrapper_Type)
#define SbkBaseWrapper_cptr(pyobj) (((Shiboken::SbkBaseWrapper*)pyobj)->cptr)