From 20dd93f427ce0e0b57d4c8ed19317f98c2d75d42 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 19 Feb 2006 19:34:15 +0000 Subject: Fix compiler warning on amd64. We can't use zd here since this is ultimately going to snprintf() not the python string formatter. Right? --- Python/getargs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/getargs.c') 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); -- cgit v1.2.1