diff options
author | François Andriot <francois.andriot@free.fr> | 2021-05-11 18:49:42 +0200 |
---|---|---|
committer | François Andriot <francois.andriot@free.fr> | 2021-05-11 18:49:42 +0200 |
commit | 6d6b6319a8e4e37db4415dcd433ac30f4446a5a1 (patch) | |
tree | 28ca534728f07d68003fe0a3b8a795a7a8891570 | |
parent | a0b020e7d2ca937033e1b4cea69fbc6a5a73fbf3 (diff) | |
download | pytqt-6d6b6319a8e4e37db4415dcd433ac30f4446a5a1.tar.gz pytqt-6d6b6319a8e4e37db4415dcd433ac30f4446a5a1.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>
-rw-r--r-- | sip/qt/qpainter.sip | 4 |
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; |