diff options
Diffstat (limited to 'sip/tdeio/kservicetype.sip')
-rw-r--r-- | sip/tdeio/kservicetype.sip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/tdeio/kservicetype.sip b/sip/tdeio/kservicetype.sip index 7d261b8..5d093e7 100644 --- a/sip/tdeio/kservicetype.sip +++ b/sip/tdeio/kservicetype.sip @@ -155,7 +155,7 @@ protected: TQString acpp = it.key (); int bcpp = (int) it.data (); PyObject *ainst; - PyObject *binst = PyInt_FromLong (bcpp); + PyObject *binst = PyLong_FromLong (bcpp); if (((ainst = sipConvertFromNewType(new TQString (acpp), sipType_TQString, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -189,7 +189,7 @@ protected: acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - if (iserr || !PyInt_Check(belem)) + if (iserr || !PyLong_Check(belem)) { if (acpp_state) sipReleaseType(acpp, sipType_TQString, acpp_state); @@ -199,7 +199,7 @@ protected: return 0; } - bcpp = (TQVariant::Type) PyInt_AS_LONG(belem); + bcpp = (TQVariant::Type) PyLong_AS_LONG(belem); cppmap->insert (*acpp, bcpp); |