[Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c
neal.norwitz
python-checkins at python.org
Sun Jan 8 07:09:15 CET 2006
Author: neal.norwitz
Date: Sun Jan 8 07:09:09 2006
New Revision: 41972
Modified:
python/branches/ssize_t/Objects/funcobject.c
Log:
Fix some warnings I introduced by increasing size
Modified: python/branches/ssize_t/Objects/funcobject.c
==============================================================================
--- python/branches/ssize_t/Objects/funcobject.c (original)
+++ python/branches/ssize_t/Objects/funcobject.c Sun Jan 8 07:09:09 2006
@@ -248,8 +248,8 @@
PyTuple_GET_SIZE(op->func_closure));
if (nclosure != nfree) {
PyErr_Format(PyExc_ValueError,
- "%s() requires a code object with %d free vars,"
- " not %d",
+ "%s() requires a code object with %ld free vars,"
+ " not %ld",
PyString_AsString(op->func_name),
nclosure, nfree);
return -1;
@@ -401,7 +401,7 @@
nclosure = closure == Py_None ? 0 : PyTuple_GET_SIZE(closure);
if (nfree != nclosure)
return PyErr_Format(PyExc_ValueError,
- "%s requires closure of length %d, not %d",
+ "%s requires closure of length %ld, not %ld",
PyString_AS_STRING(code->co_name),
nfree, nclosure);
if (nclosure) {
More information about the Python-checkins
mailing list