Commit e97ff803 authored by Stefan Behnel's avatar Stefan Behnel

fix typos in modified __Pyx_SetItemInt_Fast()

--HG--
extra : rebase_source : 86b0a49e72ad7f05aa7647350e2116475ab13589
parent 7a9a5ef7
...@@ -9318,9 +9318,9 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje ...@@ -9318,9 +9318,9 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje
if (PyList_CheckExact(o)) { if (PyList_CheckExact(o)) {
Py_ssize_t n = (likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); Py_ssize_t n = (likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
if (likely((n >= 0) & (n < PyList_GET_SIZE(o)))) { if (likely((n >= 0) & (n < PyList_GET_SIZE(o)))) {
PyObject* old = PyList_GET_ITEM(o, i); PyObject* old = PyList_GET_ITEM(o, n);
Py_INCREF(v); Py_INCREF(v);
PyList_SET_ITEM(o, i, v); PyList_SET_ITEM(o, n, v);
Py_DECREF(old); Py_DECREF(old);
return 1; return 1;
} }
......
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