Commit 40d2c834 authored by Stefan Behnel's avatar Stefan Behnel

Fix another C89 "variable declared after code" compile error.

parent b745ea05
......@@ -17,6 +17,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
// tp_dictoffset (i.e. there is no __dict__ attribute in the object
// structure), we need to check that none of the base classes sets
// it either.
int r;
PyObject *bases = t->tp_bases;
if (bases)
{
......@@ -64,7 +65,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#endif
int r = PyType_Ready(t);
r = PyType_Ready(t);
#if PY_VERSION_HEX >= 0x03050000
t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
......
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