[Python-checkins] r42504 - python/trunk/Python/getargs.c
neal.norwitz
python-checkins at python.org
Sun Feb 19 20:34:16 CET 2006
Author: neal.norwitz
Date: Sun Feb 19 20:34:15 2006
New Revision: 42504
Modified:
python/trunk/Python/getargs.c
Log:
Fix compiler warning on amd64. We can't use zd here since this is
ultimately going to snprintf() not the python string formatter. Right?
Modified: python/trunk/Python/getargs.c
==============================================================================
--- python/trunk/Python/getargs.c (original)
+++ python/trunk/Python/getargs.c Sun Feb 19 20:34:15 2006
@@ -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);
More information about the Python-checkins
mailing list