From 2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 14 Mar 2019 10:06:05 +0200 Subject: bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318) --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/getargs.c b/Python/getargs.c index 77ded60..05ebe9c 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -2134,7 +2134,7 @@ vgetargskeywordsfast_impl(PyObject *const *args, Py_ssize_t nargs, } else { PyErr_Format(PyExc_TypeError, - "%.200s%s takes %s %d positional argument%s (%d given)", + "%.200s%s takes %s %d positional argument%s (%zd given)", (parser->fname == NULL) ? "function" : parser->fname, (parser->fname == NULL) ? "" : "()", (parser->min < parser->max) ? "at most" : "exactly", -- cgit v0.12