diff Modules/arraymodule.c @ 36689:11484a72d966 legacy-trunk

Convert array.array.insert to use Py_ssize_t (like the rest already does.)
author Thomas Wouters <thomas@python.org>
date Mon, 27 Feb 2006 19:44:56 +0000
parents 23e23e15e7e7
children e9a7a2784e17
line wrap: on
line diff
--- a/Modules/arraymodule.c	Mon Feb 27 17:29:29 2006 +0000
+++ b/Modules/arraymodule.c	Mon Feb 27 19:44:56 2006 +0000
@@ -1028,9 +1028,9 @@
 static PyObject *
 array_insert(arrayobject *self, PyObject *args)
 {
-	int i;
+	Py_ssize_t i;
 	PyObject *v;
-        if (!PyArg_ParseTuple(args, "iO:insert", &i, &v))
+        if (!PyArg_ParseTuple(args, "nO:insert", &i, &v))
 		return NULL;
 	return ins(self, i, v);
 }