Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb29ec5

Browse files
committed
PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is
portable
1 parent 3f658be commit cb29ec5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Python/getargs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,8 +1476,7 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
14761476
nkeywords = (keywords == NULL) ? 0 : PyDict_Size(keywords);
14771477
if (nargs + nkeywords > len) {
14781478
PyErr_Format(PyExc_TypeError,
1479-
"%s%s takes at most %d argument%s "
1480-
"(%" PY_FORMAT_SIZE_T "d given)",
1479+
"%s%s takes at most %d argument%s (%zd given)",
14811480
(fname == NULL) ? "function" : fname,
14821481
(fname == NULL) ? "" : "()",
14831482
len,

0 commit comments

Comments
 (0)