From: Michael W. Hudson Date: Thu, 12 Sep 2002 09:31:30 +0000 (+0000) Subject: Fix for platforms where int != long. X-Git-Tag: v2.3c1~4116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c1ad84d7f62d3e2ec5367c8727481cda072820f;p=thirdparty%2FPython%2Fcpython.git Fix for platforms where int != long. --- diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index 83af14f37e61..21426a761a1a 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c @@ -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,