From 6d6b6319a8e4e37db4415dcd433ac30f4446a5a1 Mon Sep 17 00:00:00 2001 From: François Andriot Date: Tue, 11 May 2021 18:49:42 +0200 Subject: Fix ftbfs on Fedora 34 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: ordered comparison of pointer with integer zero ('PyObject*' {aka '_object*'} and 'in ') Signed-off-by: François Andriot --- sip/qt/qpainter.sip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sip') diff --git a/sip/qt/qpainter.sip b/sip/qt/qpainter.sip index e325520..15ef70b 100644 --- a/sip/qt/qpainter.sip +++ b/sip/qt/qpainter.sip @@ -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; -- cgit v1.2.3