diff Python/getargs.c @ 36521:30aef3ce2b26 legacy-trunk

Use Py_ssize_t to count the
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 16 Feb 2006 14:37:16 +0000
parents 7fdc639bc5b4
children cab36aaee2e3
line wrap: on
line diff
--- a/Python/getargs.c	Thu Feb 16 14:35:38 2006 +0000
+++ b/Python/getargs.c	Thu Feb 16 14:37:16 2006 +0000
@@ -153,7 +153,7 @@
 {
 	if(freelist) {
 		if((retval) == 0) {
-			int len = PyList_GET_SIZE(freelist), i;
+			Py_ssize_t len = PyList_GET_SIZE(freelist), i;
 			for (i = 0; i < len; i++)
                                 PyMem_FREE(PyCObject_AsVoidPtr(
                                 		PyList_GET_ITEM(freelist, i)));
@@ -176,7 +176,7 @@
 	int level = 0;
 	int endfmt = 0;
 	const char *formatsave = format;
-	int i, len;
+	Py_ssize_t i, len;
 	char *msg;
 	PyObject *freelist = NULL;
 	int compat = flags & FLAG_COMPAT;