]> granicus.if.org Git - python/commitdiff
Fix for platforms where int != long.
authorMichael W. Hudson <mwh@python.net>
Thu, 12 Sep 2002 09:31:30 +0000 (09:31 +0000)
committerMichael W. Hudson <mwh@python.net>
Thu, 12 Sep 2002 09:31:30 +0000 (09:31 +0000)
Objects/sliceobject.c

index 83af14f37e610b6d1af73079831e86e1e9082094..21426a761a1a17ab461044bbc58c0754a8ffcb52 100644 (file)
@@ -237,7 +237,7 @@ slice_indices(PySliceObject* self, PyObject* len)
                return NULL;
        }
 
-       return Py_BuildValue("(lll)", start, stop, step);
+       return Py_BuildValue("(iii)", start, stop, step);
 }
 
 PyDoc_STRVAR(slice_indices_doc,