summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/twinmodule.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdecore/twinmodule.sip')
-rw-r--r--sip/tdecore/twinmodule.sip4
1 files changed, 2 insertions, 2 deletions
diff --git a/sip/tdecore/twinmodule.sip b/sip/tdecore/twinmodule.sip
index 43bf79f..46de544 100644
--- a/sip/tdecore/twinmodule.sip
+++ b/sip/tdecore/twinmodule.sip
@@ -114,7 +114,7 @@ protected:
for( it = cpplist->begin(); it != cpplist->end(); ++it )
{
WId cpp = *it;
- if (PyList_Append (pylist, PyInt_FromLong ((int) cpp)) < 0)
+ if (PyList_Append (pylist, PyLong_FromLong ((int) cpp)) < 0)
{
Py_DECREF (pylist);
return NULL;
@@ -138,7 +138,7 @@ protected:
for (int i = 0; i < PyList_Size (sipPy); i++)
{
elem = PyList_GET_ITEM (sipPy, i);
- cpp = (WId) PyInt_AS_LONG (elem);
+ cpp = (WId) PyLong_AS_LONG (elem);
if (iserr)
{
*sipIsErr = 1;