summaryrefslogtreecommitdiff
path: root/kde-base/pykde4/files/pykde4-4.6.3-python-3.2.patch
blob: 62abdf0a1ba1034e4d773426331161f712681a67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- python/pykde4/sip/kio/kfileitem.sip
+++ python/pykde4/sip/kio/kfileitem.sip
@@ -236,7 +236,13 @@
         
         len = sipCpp->count();
         
-        if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
+        if (PySlice_GetIndicesEx(
+#if PY_VERSION_HEX >= 0x03020000
+          a0,
+#else
+          (PySliceObject *)a0,
+#endif
+	   len, &start, &stop, &step, &slicelength) < 0)
             sipIsErr = 1;
         else
         {