Cast to PyObject to avoid compiler whining
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 12:20:34 +0000 (15:20 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 12:20:34 +0000 (15:20 +0300)
python/rpmds-py.c

index 1598fee..9e88499 100644 (file)
@@ -254,7 +254,7 @@ rpmds_iternext(rpmdsObject * s)
        if (N != NULL) N = xstrdup(N);
        if (EVR != NULL) EVR = xstrdup(EVR);
 /*@=branchstate@*/
-       result = rpmds_Wrap( rpmdsSingle(tagN, N, EVR, Flags) );
+       result = (PyObject *) rpmds_Wrap( rpmdsSingle(tagN, N, EVR, Flags) );
     } else
        s->active = 0;