diff Objects/stringobject.c @ 36528:76ce880dce49 legacy-trunk

Use Py_ssize_t in helper function between Py_ssize_t-using functions.
author Thomas Wouters <thomas@python.org>
date Thu, 16 Feb 2006 15:59:12 +0000
parents d6d415df0df0
children dba6494735d0
line wrap: on
line diff
--- a/Objects/stringobject.c	Thu Feb 16 15:41:34 2006 +0000
+++ b/Objects/stringobject.c	Thu Feb 16 15:59:12 2006 +0000
@@ -3575,9 +3575,9 @@
 /* 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)