mirror of
https://github.com/python/cpython.git
synced 2024-12-02 14:24:12 +08:00
Use Py_ssize_t in helper function between Py_ssize_t-using functions.
This commit is contained in:
parent
f4de69e34d
commit
977485d888
@ -3575,9 +3575,9 @@ _PyString_Resize(PyObject **pv, Py_ssize_t newsize)
|
||||
/* Helpers for formatstring */
|
||||
|
||||
static PyObject *
|
||||
getnextarg(PyObject *args, int arglen, int *p_argidx)
|
||||
getnextarg(PyObject *args, Py_ssize_t arglen, Py_ssize_t *p_argidx)
|
||||
{
|
||||
int argidx = *p_argidx;
|
||||
Py_ssize_t argidx = *p_argidx;
|
||||
if (argidx < arglen) {
|
||||
(*p_argidx)++;
|
||||
if (arglen < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user