mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
Get rid of compiler warnings (gcc 3.3.4 on x86)
This commit is contained in:
parent
15231548d2
commit
26efe402c2
5 changed files with 11 additions and 11 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue