summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2013-05-18 16:35:19 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2013-05-18 16:35:19 (GMT)
commit25296ce5de6501ac3eb3ed2631288b63c3ad61c7 (patch)
treee13ffc2f9414392bb40b9c0c2732018c996569bc /Python/getargs.c
parent31fb419908c63419b4f725e1ad457a9fd0eee526 (diff)
downloadcpython-25296ce5de6501ac3eb3ed2631288b63c3ad61c7.zip
cpython-25296ce5de6501ac3eb3ed2631288b63c3ad61c7.tar.gz
cpython-25296ce5de6501ac3eb3ed2631288b63c3ad61c7.tar.bz2
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
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 @@ seterror(Py_ssize_t iarg, const char *msg, int *levels, const char *fname,
}
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) {