diff --git a/src/python/xml_parser-py.c b/src/python/xml_parser-py.c index 1f9d981b..b575feb7 100644 --- a/src/python/xml_parser-py.c +++ b/src/python/xml_parser-py.c @@ -859,8 +859,9 @@ pkg_iterator_dealloc(_PkgIteratorObject *self) } static PyObject * -pkg_iterator_next_package(_PkgIteratorObject *self, G_GNUC_UNUSED void *nothing) +pkg_iterator_next_package(PyObject *PyObject_self) { + _PkgIteratorObject *self = (_PkgIteratorObject *) PyObject_self; cr_Package *pkg; GError *tmp_err = NULL;