diff options
author | Thomas Wouters <thomas@python.org> | 2006-02-27 19:44:56 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-02-27 19:44:56 (GMT) |
commit | b9eb5510e676627759d804271dc3b46682291cc2 (patch) | |
tree | 932f8ecf25bba4819f4f8eb9bc355b80232cc6ee | |
parent | c7d37264bbd4a234027dffd215cc32813a202710 (diff) | |
download | cpython-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.c | 4 |
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); } |