diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:37:16 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:37:16 (GMT) |
commit | d96ee909934f3855135589e0e8d6ece1912c1f22 (patch) | |
tree | 831f7231c28aecc2be637bc80994e6ccabd009f2 /Python/getargs.c | |
parent | f5adf1eb72c755c3f6183199656f18b12a1cb952 (diff) | |
download | cpython-d96ee909934f3855135589e0e8d6ece1912c1f22.zip cpython-d96ee909934f3855135589e0e8d6ece1912c1f22.tar.gz cpython-d96ee909934f3855135589e0e8d6ece1912c1f22.tar.bz2 |
Use Py_ssize_t to count the
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 0615577..273cb43 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -153,7 +153,7 @@ cleanreturn(int retval, PyObject *freelist) { 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 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags) 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; |