File python-qt3-pointer-comparison-with-zero.patch of Package python-qt3
diff -Naru python-qt3-3.18.1_orig/sip/qt/qpainter.sip python-qt3-3.18.1/sip/qt/qpainter.sip
--- python-qt3-3.18.1_orig/sip/qt/qpainter.sip 2022-02-08 11:07:17.794543457 +0900
+++ python-qt3-3.18.1/sip/qt/qpainter.sip 2022-02-08 11:20:07.203652530 +0900
@@ -291,7 +291,7 @@
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;
@@ -615,7 +615,7 @@
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;