diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 06:59:22 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 06:59:22 (GMT) |
commit | e0e89f79201e2ee57ebd0cc4765793d870c0a5c0 (patch) | |
tree | 2333ae17ed3e93be9887a083c71a8b7a17927637 /Objects/funcobject.c | |
parent | 2c95cc6d72957296c46bb11362359675a47e2085 (diff) | |
download | cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.zip cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.tar.gz cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.tar.bz2 |
Revert 42400.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index ff70baf..fe34a11 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -251,7 +251,7 @@ func_set_code(PyFunctionObject *op, PyObject *value) "%s() requires a code object with %zd free vars," " not %zd", PyString_AsString(op->func_name), - (long)nclosure, (long)nfree); + nclosure, nfree); return -1; } tmp = op->func_code; @@ -403,7 +403,7 @@ func_new(PyTypeObject* type, PyObject* args, PyObject* kw) return PyErr_Format(PyExc_ValueError, "%s requires closure of length %zd, not %zd", PyString_AS_STRING(code->co_name), - (long)nfree, (long)nclosure); + nfree, nclosure); if (nclosure) { Py_ssize_t i; for (i = 0; i < nclosure; i++) { |