]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
authorRichard Oudkerk <shibturn@gmail.com>
Sat, 18 May 2013 16:35:19 +0000 (17:35 +0100)
committerRichard Oudkerk <shibturn@gmail.com>
Sat, 18 May 2013 16:35:19 +0000 (17:35 +0100)
Python/getargs.c

index 87b6a6e3b202c287642c7ae6ffa2cdbf5758c8a3..bdf1a0c193dc1d2f8acce408b5cdb5f8e4a86b0d 100644 (file)
@@ -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) {