[Python-checkins] cpython: Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
richard.oudkerk
python-checkins at python.org
Sat May 18 18:37:11 CEST 2013
http://hg.python.org/cpython/rev/0648e7fe7a72
changeset: 83829:0648e7fe7a72
user: Richard Oudkerk <shibturn at gmail.com>
date: Sat May 18 17:35:19 2013 +0100
summary:
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
files:
Python/getargs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/getargs.c b/Python/getargs.c
--- 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) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list