Commit 25c614ea authored by Jeroen Demeyer's avatar Jeroen Demeyer

Declare variable at start of block

parent 449a48ec
...@@ -24,6 +24,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) { ...@@ -24,6 +24,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
for (i = 1; i < n; i++) /* Skip first base */ for (i = 1; i < n; i++) /* Skip first base */
{ {
PyObject *b0 = PyTuple_GET_ITEM(bases, i); PyObject *b0 = PyTuple_GET_ITEM(bases, i);
PyTypeObject *b;
#if PY_MAJOR_VERSION < 3 #if PY_MAJOR_VERSION < 3
/* Disallow old-style classes */ /* Disallow old-style classes */
if (PyClass_Check(b0)) if (PyClass_Check(b0))
...@@ -33,7 +34,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) { ...@@ -33,7 +34,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
return -1; return -1;
} }
#endif #endif
PyTypeObject *b = (PyTypeObject*)b0; b = (PyTypeObject*)b0;
if (!PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE)) if (!PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
{ {
PyErr_Format(PyExc_TypeError, "base class '%.200s' is not a heap type", PyErr_Format(PyExc_TypeError, "base class '%.200s' is not a heap type",
......
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