mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Convert array.array.insert to use Py_ssize_t (like the rest already does.)
This commit is contained in:
parent
c7d37264bb
commit
b9eb5510e6
1 changed files with 2 additions and 2 deletions
|
@ -1028,9 +1028,9 @@ PyDoc_STRVAR(extend_doc,
|
||||||
static PyObject *
|
static PyObject *
|
||||||
array_insert(arrayobject *self, PyObject *args)
|
array_insert(arrayobject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
int i;
|
Py_ssize_t i;
|
||||||
PyObject *v;
|
PyObject *v;
|
||||||
if (!PyArg_ParseTuple(args, "iO:insert", &i, &v))
|
if (!PyArg_ParseTuple(args, "nO:insert", &i, &v))
|
||||||
return NULL;
|
return NULL;
|
||||||
return ins(self, i, v);
|
return ins(self, i, v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue