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>
(cherry picked from commit 6d6b6319a8)
r14.0.x
François Andriot 3 years ago committed by Michele Calgaro
parent a1b7a93354
commit 1a00e1cccd
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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