diff Python/getargs.c @ 83829:0648e7fe7a72

Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
author Richard Oudkerk <shibturn@gmail.com>
date Sat, 18 May 2013 17:35:19 +0100
parents ef5dd5bda323
children aeebbae8c74c
line wrap: on
line diff
--- a/Python/getargs.c	Sat May 18 17:59:12 2013 +0200
+++ b/Python/getargs.c	Sat May 18 17:35:19 2013 +0100
@@ -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) {