The daily ritual: fix C89 violations.

This commit is contained in:
Guido van Rossum 2006-08-26 02:54:40 +00:00
parent f35ad33064
commit 59baa759e4
1 changed files with 4 additions and 2 deletions

View File

@ -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;