Fix ftbfs on Fedora 34

error: ordered comparison of pointer with integer zero ('PyObject*' {aka '_object*'} and 'in ')

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/3/head
François Andriot 3 years ago
parent a0b020e7d2
commit 6d6b6319a8

@ -289,7 +289,7 @@ public:
do
{
if (PyList_SET_ITEM(sipRes,len,PyInt_FromLong((long)*tp)) < 0)
if (PyList_SetItem(sipRes,len,PyInt_FromLong((long)*tp)) < 0)
{
Py_DECREF(sipRes);
sipIsErr = 1;
@ -612,7 +612,7 @@ public:
do
{
if (PyList_SET_ITEM(sipRes,len,PyInt_FromLong((long)*tp)) < 0)
if (PyList_SetItem(sipRes,len,PyInt_FromLong((long)*tp)) < 0)
{
Py_DECREF(sipRes);
sipIsErr = 1;

Loading…
Cancel
Save