mirror of
https://github.com/python/cpython.git
synced 2025-09-23 08:53:45 +00:00
Fix compiler warning on amd64. We can't use zd here since this is
ultimately going to snprintf() not the python string formatter. Right?
This commit is contained in:
parent
a361bd8dce
commit
20dd93f427
1 changed files with 2 additions and 2 deletions
|
@ -277,14 +277,14 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
|
||||||
if (message == NULL) {
|
if (message == NULL) {
|
||||||
PyOS_snprintf(msgbuf, sizeof(msgbuf),
|
PyOS_snprintf(msgbuf, sizeof(msgbuf),
|
||||||
"%.150s%s takes %s %d argument%s "
|
"%.150s%s takes %s %d argument%s "
|
||||||
"(%d given)",
|
"(%ld given)",
|
||||||
fname==NULL ? "function" : fname,
|
fname==NULL ? "function" : fname,
|
||||||
fname==NULL ? "" : "()",
|
fname==NULL ? "" : "()",
|
||||||
min==max ? "exactly"
|
min==max ? "exactly"
|
||||||
: len < min ? "at least" : "at most",
|
: len < min ? "at least" : "at most",
|
||||||
len < min ? min : max,
|
len < min ? min : max,
|
||||||
(len < min ? min : max) == 1 ? "" : "s",
|
(len < min ? min : max) == 1 ? "" : "s",
|
||||||
len);
|
(long)len);
|
||||||
message = msgbuf;
|
message = msgbuf;
|
||||||
}
|
}
|
||||||
PyErr_SetString(PyExc_TypeError, message);
|
PyErr_SetString(PyExc_TypeError, message);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue