diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-19 19:34:15 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-19 19:34:15 (GMT) |
commit | 20dd93f427ce0e0b57d4c8ed19317f98c2d75d42 (patch) | |
tree | d7f259ecd0b8dcd5a3f3f2ac0f9b566ea707fb11 /Python | |
parent | a361bd8dce3513d2f58a3b7548139990c31f0bb7 (diff) | |
download | cpython-20dd93f427ce0e0b57d4c8ed19317f98c2d75d42.zip cpython-20dd93f427ce0e0b57d4c8ed19317f98c2d75d42.tar.gz cpython-20dd93f427ce0e0b57d4c8ed19317f98c2d75d42.tar.bz2 |
Fix compiler warning on amd64. We can't use zd here since this is
ultimately going to snprintf() not the python string formatter. Right?
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 273cb43..530dffb 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -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); |