Kaydet (Commit) 59baa759 authored tarafından Guido van Rossum's avatar Guido van Rossum

The daily ritual: fix C89 violations.

üst f35ad330
...@@ -340,8 +340,9 @@ zipiter_next(zipiterobject *zit) ...@@ -340,8 +340,9 @@ zipiter_next(zipiterobject *zit)
Py_INCREF(result); Py_INCREF(result);
for (i = 0; i < tuplesize; i++) { for (i = 0; i < tuplesize; i++) {
PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i); PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i);
PyObject *item;
assert(PyIter_Check(it)); assert(PyIter_Check(it));
PyObject *item = (*it->ob_type->tp_iternext)(it); item = (*it->ob_type->tp_iternext)(it);
if (item == NULL) { if (item == NULL) {
Py_DECREF(result); Py_DECREF(result);
return NULL; return NULL;
...@@ -356,8 +357,9 @@ zipiter_next(zipiterobject *zit) ...@@ -356,8 +357,9 @@ zipiter_next(zipiterobject *zit)
return NULL; return NULL;
for (i = 0; i < tuplesize; i++) { for (i = 0; i < tuplesize; i++) {
PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i); PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i);
PyObject *item;
assert(PyIter_Check(it)); assert(PyIter_Check(it));
PyObject *item = (*it->ob_type->tp_iternext)(it); item = (*it->ob_type->tp_iternext)(it);
if (item == NULL) { if (item == NULL) {
Py_DECREF(result); Py_DECREF(result);
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment