mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
Convert array.array.insert to use Py_ssize_t (like the rest already does.)
This commit is contained in:
parent
c7d37264bb
commit
b9eb5510e6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user