Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 83802:ef5dd5bda323
Fix compilater warnings on Windows 64-bit
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Fri, 17 May 2013 00:12:04 +0200 |
| parents | 4e985a96a612 |
| children | 0648e7fe7a72 |
line wrap: on
line diff
--- a/Python/getargs.c Fri May 17 00:04:56 2013 +0200 +++ b/Python/getargs.c Fri May 17 00:12:04 2013 +0200 @@ -55,7 +55,7 @@ /* Forward */ static int vgetargs1(PyObject *, const char *, va_list *, int); -static void seterror(int, const char *, int *, const char *, const char *); +static void seterror(Py_ssize_t, const char *, int *, const char *, const char *); static char *convertitem(PyObject *, const char **, va_list *, int, int *, char *, size_t, freelist_t *); static char *converttuple(PyObject *, const char **, va_list *, int, @@ -357,7 +357,7 @@ static void -seterror(int iarg, const char *msg, int *levels, const char *fname, +seterror(Py_ssize_t iarg, const char *msg, int *levels, const char *fname, const char *message) { char buf[512]; @@ -373,7 +373,7 @@ } if (iarg != 0) { PyOS_snprintf(p, sizeof(buf) - (p - buf), - "argument %d", iarg); + "argument %zd", iarg); i = 0; p += strlen(p); while (levels[i] > 0 && i < 32 && (int)(p-buf) < 220) {
