Commit 8a243e1d authored by Robert Bradshaw's avatar Robert Bradshaw

Wrap likely() expressions individually in indexing code.

parent b49f883f
...@@ -5411,7 +5411,7 @@ static INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, Py_ssize_t i, int ...@@ -5411,7 +5411,7 @@ static INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, Py_ssize_t i, int
} }
static INLINE PyObject *__Pyx_GetItemInt_List(PyObject *o, Py_ssize_t i, int is_unsigned) { static INLINE PyObject *__Pyx_GetItemInt_List(PyObject *o, Py_ssize_t i, int is_unsigned) {
if (likely(o != Py_None && ((0 <= i) & (i < PyList_GET_SIZE(o))))) { if (likely(o != Py_None) && likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
PyObject *r = PyList_GET_ITEM(o, i); PyObject *r = PyList_GET_ITEM(o, i);
Py_INCREF(r); Py_INCREF(r);
return r; return r;
...@@ -5420,7 +5420,7 @@ static INLINE PyObject *__Pyx_GetItemInt_List(PyObject *o, Py_ssize_t i, int is_ ...@@ -5420,7 +5420,7 @@ static INLINE PyObject *__Pyx_GetItemInt_List(PyObject *o, Py_ssize_t i, int is_
} }
static INLINE PyObject *__Pyx_GetItemInt_Tuple(PyObject *o, Py_ssize_t i, int is_unsigned) { static INLINE PyObject *__Pyx_GetItemInt_Tuple(PyObject *o, Py_ssize_t i, int is_unsigned) {
if (likely(o != Py_None && ((0 <= i) & (i < PyTuple_GET_SIZE(o))))) { if (likely(o != Py_None) && likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
PyObject *r = PyTuple_GET_ITEM(o, i); PyObject *r = PyTuple_GET_ITEM(o, i);
Py_INCREF(r); Py_INCREF(r);
return r; return r;
......
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