mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
This commit is contained in:
parent
31fb419908
commit
25296ce5de
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue