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:
Neal Norwitz 2006-02-19 19:34:15 +00:00
parent a361bd8dce
commit 20dd93f427

View file

@ -277,14 +277,14 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
if (message == NULL) {
PyOS_snprintf(msgbuf, sizeof(msgbuf),
"%.150s%s takes %s %d argument%s "
"(%d given)",
"(%ld given)",
fname==NULL ? "function" : fname,
fname==NULL ? "" : "()",
min==max ? "exactly"
: len < min ? "at least" : "at most",
len < min ? min : max,
(len < min ? min : max) == 1 ? "" : "s",
len);
(long)len);
message = msgbuf;
}
PyErr_SetString(PyExc_TypeError, message);