diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2011-09-13 16:20:48 -0400 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2011-09-13 16:20:48 -0400 |
commit | 24b920f9922e367bdb8b3e56c2f61e0c8f5cdb66 (patch) | |
tree | c788367e16957900d3816bb9ae9e5af8927f55a0 | |
parent | 861369ec59b17f67151813dc2e87c6e86126b954 (diff) | |
download | pygobject-24b920f9922e367bdb8b3e56c2f61e0c8f5cdb66.tar.gz |
cast params for PyObject_IsInstance to suppress warnings
-rw-r--r-- | gi/_gobject/pygobject-private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gi/_gobject/pygobject-private.h b/gi/_gobject/pygobject-private.h index 01668254..dabf0a4e 100644 --- a/gi/_gobject/pygobject-private.h +++ b/gi/_gobject/pygobject-private.h @@ -184,7 +184,7 @@ typedef struct { extern PyTypeObject PyGFlags_Type; -#define PyGFlags_Check(x) (PyObject_IsInstance(x, &PyGFlags_Type) && g_type_is_a(((PyGFlags*)x)->gtype, G_TYPE_FLAGS)) +#define PyGFlags_Check(x) (PyObject_IsInstance((PyObject *)x, (PyObject *)&PyGFlags_Type) && g_type_is_a(((PyGFlags*)x)->gtype, G_TYPE_FLAGS)) extern PyObject * pyg_flags_add (PyObject * module, const char * type_name, @@ -194,7 +194,7 @@ extern PyObject * pyg_flags_from_gtype (GType gtype, int value); /* pygenum */ -#define PyGEnum_Check(x) (PyObject_IsInstance(x, &PyGEnum_Type) && g_type_is_a(((PyGFlags*)x)->gtype, G_TYPE_ENUM)) +#define PyGEnum_Check(x) (PyObject_IsInstance((PyObject *)x, (PyObject *)&PyGEnum_Type) && g_type_is_a(((PyGFlags*)x)->gtype, G_TYPE_ENUM)) typedef struct { PYGLIB_PyLongObject parent; |