summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-02-16 15:59:12 (GMT)
committerThomas Wouters <thomas@python.org>2006-02-16 15:59:12 (GMT)
commit977485d8883fc180e2e12d1a4a8e762cf89fc0ca (patch)
tree72d9b399a0a2987341d16d4b5693f60a81dc1146 /Objects/stringobject.c
parentf4de69e34d53821170a373711638d6ad9fd9cff1 (diff)
downloadcpython-977485d8883fc180e2e12d1a4a8e762cf89fc0ca.zip
cpython-977485d8883fc180e2e12d1a4a8e762cf89fc0ca.tar.gz
cpython-977485d8883fc180e2e12d1a4a8e762cf89fc0ca.tar.bz2
Use Py_ssize_t in helper function between Py_ssize_t-using functions.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 733d342..8480308 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)