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.sip6
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/tdeparts/browserextension.sip b/sip/tdeparts/browserextension.sip
index a9d47a3..88e3f4c 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)) == NULL)
+ || ((binst = PyLong_FromLong (bcpp)) == NULL)
|| (PyDict_SetItem (dict, ainst, binst) < 0))
{
Py_XDECREF (ainst);
@@ -510,14 +510,14 @@ TQMap<TQCString,int> testTQMapTQCStringInt (TQMap<TQCString,int>);
acpp = (TQCString *)sipForceConvertToType(aelem, sipType_TQCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
- if (iserr || !PyInt_Check (belem))
+ if (iserr || !PyLong_Check (belem))
{
*sipIsErr = 1;
delete cppmap;
return 0;
}
- bcpp = PyInt_AS_LONG (belem);
+ bcpp = PyLong_AS_LONG (belem);
cppmap->insert (*acpp, bcpp);
}