summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-11 19:21:58 +0200
committerFrançois Andriot <francois.andriot@free.fr>2021-05-11 19:21:58 +0200
commita2db78986dd11a8e85faa9dc5ab877228306c1a2 (patch)
tree3fc66a0fc46ab86b081e461e1654e98d6d15b234
parent4358f073871c8a750886dcc9e77d7fb72c64b7b3 (diff)
downloadpytde-a2db78986dd11a8e85faa9dc5ab877228306c1a2.tar.gz
pytde-a2db78986dd11a8e85faa9dc5ab877228306c1a2.zip
Fix ftbfs on Fedora 34
Signed-off-by: François Andriot <francois.andriot@free.fr>
-rw-r--r--sip/tdeparts/browserextension.sip2
1 files changed, 1 insertions, 1 deletions
diff --git a/sip/tdeparts/browserextension.sip b/sip/tdeparts/browserextension.sip
index cf93792..a9d47a3 100644
--- a/sip/tdeparts/browserextension.sip
+++ b/sip/tdeparts/browserextension.sip
@@ -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);