Commit e6eee9ea authored by Sebastian Berg's avatar Sebastian Berg

BUG: Fix(up) incorrect return in SetItemFast

Sorry, my previous fix was cursed (not running the tests), now I
saw the compiler warning, and I suppose it would be good for the
tests to run error paths.
parent b9f3704b
...@@ -503,7 +503,7 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje ...@@ -503,7 +503,7 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje
int r; int r;
PyObject *key = PyInt_FromSsize_t(i); PyObject *key = PyInt_FromSsize_t(i);
if (unlikely(!key)) return -1; if (unlikely(!key)) return -1;
mm->mp_ass_subscript(o, key, v); r = mm->mp_ass_subscript(o, key, v);
Py_DECREF(key); Py_DECREF(key);
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