summaryrefslogtreecommitdiffstats
path: root/sip/tdeparts/browserextension.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdeparts/browserextension.sip')
-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);