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 testTQMapTQCStringInt (TQMap); 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);