diff options
author | Guido van Rossum <guido@python.org> | 2006-08-26 02:54:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-26 02:54:40 (GMT) |
commit | 59baa759e4cc4ab66f240f35e3cb7edfb4375952 (patch) | |
tree | 5bcfe07bf2c451cbc189abccb749c5846dca5f2d /Objects | |
parent | f35ad33064fb81de3ea4499285d2748c8e5629f1 (diff) | |
download | cpython-59baa759e4cc4ab66f240f35e3cb7edfb4375952.zip cpython-59baa759e4cc4ab66f240f35e3cb7edfb4375952.tar.gz cpython-59baa759e4cc4ab66f240f35e3cb7edfb4375952.tar.bz2 |
The daily ritual: fix C89 violations.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/iterobject.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c index dc4c583..3fe861b 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -340,8 +340,9 @@ zipiter_next(zipiterobject *zit) Py_INCREF(result); for (i = 0; i < tuplesize; i++) { PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i); + PyObject *item; assert(PyIter_Check(it)); - PyObject *item = (*it->ob_type->tp_iternext)(it); + item = (*it->ob_type->tp_iternext)(it); if (item == NULL) { Py_DECREF(result); return NULL; @@ -356,8 +357,9 @@ zipiter_next(zipiterobject *zit) return NULL; for (i = 0; i < tuplesize; i++) { PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i); + PyObject *item; assert(PyIter_Check(it)); - PyObject *item = (*it->ob_type->tp_iternext)(it); + item = (*it->ob_type->tp_iternext)(it); if (item == NULL) { Py_DECREF(result); return NULL; |