[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [pykde4/KDE/4.8] sip/kio: Compile fix for Python 3.2 and higher.
From: Simon Edwards <simon () simonzone ! com>
Date: 2012-01-07 19:14:39
Message-ID: 20120107191439.B0158A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 1b93a82c1ccbeacac724a44e9ad3c866915f81da by Simon Edwards.
Committed on 07/01/2012 at 20:12.
Pushed by sedwards into branch 'KDE/4.8'.
Compile fix for Python 3.2 and higher.
M +4 -0 sip/kio/kfileitem.sip
http://commits.kde.org/pykde4/1b93a82c1ccbeacac724a44e9ad3c866915f81da
diff --git a/sip/kio/kfileitem.sip b/sip/kio/kfileitem.sip
index 1904306..86aa772 100644
--- a/sip/kio/kfileitem.sip
+++ b/sip/kio/kfileitem.sip
@@ -236,7 +236,11 @@ SIP_SSIZE_T len, start, stop, step, slicelength, i;
len = sipCpp->count();
+#if PY_VERSION_HEX >= 0x03020000
+ if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
+#else
if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
+#endif
sipIsErr = 1;
else
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic