From: Victor Stinner Date: Mon, 18 Nov 2013 01:05:31 +0000 (+0100) Subject: PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is X-Git-Tag: v3.4.0b1~207 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb29ec5f74506add92cc8103b31c0abb1d99afcb;p=thirdparty%2FPython%2Fcpython.git PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is portable --- diff --git a/Python/getargs.c b/Python/getargs.c index 2cc3031c17fe..60845680fc2a 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1476,8 +1476,7 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format, nkeywords = (keywords == NULL) ? 0 : PyDict_Size(keywords); if (nargs + nkeywords > len) { PyErr_Format(PyExc_TypeError, - "%s%s takes at most %d argument%s " - "(%" PY_FORMAT_SIZE_T "d given)", + "%s%s takes at most %d argument%s (%zd given)", (fname == NULL) ? "function" : fname, (fname == NULL) ? "" : "()", len,