Fix ftbfs on Fedora 34

Signed-off-by: François Andriot <francois.andriot@free.fr>
(cherry picked from commit a2db78986d)
r14.0.x
François Andriot 3 years ago committed by Michele Calgaro
parent 47e7dfa461
commit b04bf794df
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -477,7 +477,7 @@ TQMap<TQCString,int> testTQMapTQCStringInt (TQMap<TQCString,int>);
PyObject *ainst;
PyObject *binst = NULL;
if (((ainst = sipConvertFromNewType(new TQCString (acpp), sipType_TQCString, NULL)) == NULL)
|| ((binst = PyInt_FromLong (bcpp)) < 0)
|| ((binst = PyInt_FromLong (bcpp)) == NULL)
|| (PyDict_SetItem (dict, ainst, binst) < 0))
{
Py_XDECREF (ainst);

Loading…
Cancel
Save