Commit 0a239e91 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

Fix compilation with C89 compilers (Windows...)

parent e557da80
...@@ -1837,6 +1837,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) ...@@ -1837,6 +1837,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
/* x is now the iterator, make the first next() call */ /* x is now the iterator, make the first next() call */
retval = (*Py_TYPE(x)->tp_iternext)(x); retval = (*Py_TYPE(x)->tp_iternext)(x);
if (!retval) { if (!retval) {
PyObject *et, *ev, *tb;
/* iter may be exhausted */ /* iter may be exhausted */
Py_CLEAR(x); Py_CLEAR(x);
if (PyErr_Occurred() && if (PyErr_Occurred() &&
...@@ -1845,7 +1846,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) ...@@ -1845,7 +1846,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
break; break;
} }
/* try to get return value from exception */ /* try to get return value from exception */
PyObject *et, *ev, *tb;
PyErr_Fetch(&et, &ev, &tb); PyErr_Fetch(&et, &ev, &tb);
Py_XDECREF(et); Py_XDECREF(et);
Py_XDECREF(tb); Py_XDECREF(tb);
......
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