summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-11 18:49:42 +0200
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-05-12 09:07:50 +0900
commit1a00e1cccdb5edc72d685b9b06e2af867efa2f10 (patch)
tree7efba4c4e9671b3dd5024300144c0c9dd45a3110
parenta1b7a93354b1ccb8e982e887a306fe58d2c2d327 (diff)
downloadpytqt-1a00e1cccdb5edc72d685b9b06e2af867efa2f10.tar.gz
pytqt-1a00e1cccdb5edc72d685b9b06e2af867efa2f10.zip
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 6d6b6319a8e4e37db4415dcd433ac30f4446a5a1)
-rw-r--r--sip/qt/qpainter.sip4
1 files changed, 2 insertions, 2 deletions
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;