commit | 25296ce5de6501ac3eb3ed2631288b63c3ad61c7 | [log] [tgz] |
---|---|---|
author | Richard Oudkerk <shibturn@gmail.com> | Sat May 18 17:35:19 2013 +0100 |
committer | Richard Oudkerk <shibturn@gmail.com> | Sat May 18 17:35:19 2013 +0100 |
tree | e13ffc2f9414392bb40b9c0c2732018c996569bc | |
parent | 31fb419908c63419b4f725e1ad457a9fd0eee526 [diff] [blame] |
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
diff --git a/Python/getargs.c b/Python/getargs.c index 87b6a6e..bdf1a0c 100644 --- a/Python/getargs.c +++ b/Python/getargs.c
@@ -373,7 +373,7 @@ } if (iarg != 0) { PyOS_snprintf(p, sizeof(buf) - (p - buf), - "argument %zd", iarg); + "argument %" PY_FORMAT_SIZE_T "d", iarg); i = 0; p += strlen(p); while (levels[i] > 0 && i < 32 && (int)(p-buf) < 220) {