diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-16 06:21:57 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-16 06:21:57 (GMT) |
commit | 26efe402c2a5dba441dc2feae2f15fea6be452ba (patch) | |
tree | 7d083ee4baf14cd990a8dbcfefa9aa7ba9ca5285 /Objects/funcobject.c | |
parent | 15231548d20b2a6fcac2830935ec076bed42448f (diff) | |
download | cpython-26efe402c2a5dba441dc2feae2f15fea6be452ba.zip cpython-26efe402c2a5dba441dc2feae2f15fea6be452ba.tar.gz cpython-26efe402c2a5dba441dc2feae2f15fea6be452ba.tar.bz2 |
Get rid of compiler warnings (gcc 3.3.4 on x86)
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 4abf51a..d644001 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 %ld free vars," " not %ld", PyString_AsString(op->func_name), - nclosure, nfree); + (long)nclosure, (long)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 %ld, not %ld", PyString_AS_STRING(code->co_name), - nfree, nclosure); + (long)nfree, (long)nclosure); if (nclosure) { Py_ssize_t i; for (i = 0; i < nclosure; i++) { |