summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/kcompletion.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdecore/kcompletion.sip')
-rw-r--r--sip/tdecore/kcompletion.sip6
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/tdecore/kcompletion.sip b/sip/tdecore/kcompletion.sip
index 223e230..a19fc24 100644
--- a/sip/tdecore/kcompletion.sip
+++ b/sip/tdecore/kcompletion.sip
@@ -175,7 +175,7 @@ protected:
for (it = map.begin (); it != map.end (); ++it)
{
- key = PyInt_FromLong ((int) it.key ());
+ key = PyLong_FromLong ((int) it.key ());
value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_TDEShortcut, sipTransferObj);
if ((value == NULL) || (PyDict_SetItem (dict, key, value) < 0))
{
@@ -208,14 +208,14 @@ protected:
{
cValue = (TDEShortcut *)sipForceConvertToType(value, sipType_TDEShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
- if (iserr || !PyInt_Check (key))
+ if (iserr || !PyLong_Check (key))
{
*sipIsErr = 1;
delete kbmap;
return 0;
}
- kbmap->insert ((TDECompletionBase::KeyBindingType)PyInt_AS_LONG (key), *cValue);
+ kbmap->insert ((TDECompletionBase::KeyBindingType)PyLong_AS_LONG (key), *cValue);
}
*sipCppPtr = kbmap;