diff options
Diffstat (limited to 'gobject/pygobject.h')
-rw-r--r-- | gobject/pygobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index bbe38f7..2b031a1 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -96,7 +96,7 @@ struct _PyGObject_Functions *_PyGObject_API; PyObject *mdict = PyModule_GetDict(gobject); \ PyObject *cobject = PyDict_GetItemString(mdict, "_PyGObject_API"); \ if (PyCObject_Check(cobject)) \ - _PyGObject_API = PyCObject_AsVoidPtr(cobject); \ + _PyGObject_API = (struct _PyGObject_Functions *)PyCObject_AsVoidPtr(cobject); \ else { \ Py_FatalError("could not find _PyGObject_API object"); \ return; \ |