summaryrefslogtreecommitdiff
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-19 19:34:15 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-19 19:34:15 +0000
commit20dd93f427ce0e0b57d4c8ed19317f98c2d75d42 (patch)
treed7f259ecd0b8dcd5a3f3f2ac0f9b566ea707fb11 /Python/getargs.c
parenta361bd8dce3513d2f58a3b7548139990c31f0bb7 (diff)
downloadcpython-git-20dd93f427ce0e0b57d4c8ed19317f98c2d75d42.tar.gz
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/getargs.c')
-rw-r--r--Python/getargs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 273cb43da2..530dffb61b 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);