Fix ftbfs on Fedora 34

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/1/head
François Andriot 3 years ago
parent 4358f07387
commit a2db78986d

@ -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