From: Richard Oudkerk Date: Sat, 18 May 2013 16:35:19 +0000 (+0100) Subject: Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format. X-Git-Tag: v3.4.0a1~693 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25296ce5de6501ac3eb3ed2631288b63c3ad61c7;p=thirdparty%2FPython%2Fcpython.git Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format. --- diff --git a/Python/getargs.c b/Python/getargs.c index 87b6a6e3b202..bdf1a0c193dc 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) {