Commit fa0a316e authored by Stefan Behnel's avatar Stefan Behnel

Fix C99-ism to make code C89 again.

parent 64695280
......@@ -318,12 +318,13 @@ static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
PyTypeObject *tp = Py_TYPE(obj);
PySequenceMethods *sm;
PyMappingMethods *mm = tp->tp_as_mapping;
if (likely(mm && mm->mp_subscript)) {
return mm->mp_subscript(obj, key);
}
PySequenceMethods *sm = tp->tp_as_sequence;
sm = tp->tp_as_sequence;
if (likely(sm && sm->sq_item)) {
return __Pyx_PyObject_GetIndex(obj, key);
}
......
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