Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 36605:cab36aaee2e3 legacy-trunk
Fix compiler warning on amd64. We can't use zd here since this is
ultimately going to snprintf() not the python string formatter. Right?
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sun, 19 Feb 2006 19:34:15 +0000 |
| parents | 30aef3ce2b26 |
| children | bddc13d57b88 |
line wrap: on
line diff
--- a/Python/getargs.c Sun Feb 19 19:31:50 2006 +0000 +++ b/Python/getargs.c Sun Feb 19 19:34:15 2006 +0000 @@ -277,14 +277,14 @@ 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);
