From 977485d8883fc180e2e12d1a4a8e762cf89fc0ca Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Thu, 16 Feb 2006 15:59:12 +0000 Subject: [PATCH] Use Py_ssize_t in helper function between Py_ssize_t-using functions. --- Objects/stringobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 733d3422e60..84803083745 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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)