summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-02-27 19:44:56 (GMT)
committerThomas Wouters <thomas@python.org>2006-02-27 19:44:56 (GMT)
commitb9eb5510e676627759d804271dc3b46682291cc2 (patch)
tree932f8ecf25bba4819f4f8eb9bc355b80232cc6ee
parentc7d37264bbd4a234027dffd215cc32813a202710 (diff)
downloadcpython-b9eb5510e676627759d804271dc3b46682291cc2.zip
cpython-b9eb5510e676627759d804271dc3b46682291cc2.tar.gz
cpython-b9eb5510e676627759d804271dc3b46682291cc2.tar.bz2
Convert array.array.insert to use Py_ssize_t (like the rest already does.)
-rw-r--r--Modules/arraymodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 4152bad..be12775 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1028,9 +1028,9 @@ PyDoc_STRVAR(extend_doc,
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);
}