Skip to content

Commit 25296ce

Browse files
committed
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
1 parent 31fb419 commit 25296ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/getargs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ seterror(Py_ssize_t iarg, const char *msg, int *levels, const char *fname,
373373
}
374374
if (iarg != 0) {
375375
PyOS_snprintf(p, sizeof(buf) - (p - buf),
376-
"argument %zd", iarg);
376+
"argument %" PY_FORMAT_SIZE_T "d", iarg);
377377
i = 0;
378378
p += strlen(p);
379379
while (levels[i] > 0 && i < 32 && (int)(p-buf) < 220) {

0 commit comments

Comments
 (0)