Commit d6fac46c authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #3026 from seberg/setitemfast_bug

BUG: Fix(up) incorrect return in SetItemFast
parents b9f3704b e6eee9ea
......@@ -503,7 +503,7 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje
int r;
PyObject *key = PyInt_FromSsize_t(i);
if (unlikely(!key)) return -1;
mm->mp_ass_subscript(o, key, v);
r = mm->mp_ass_subscript(o, key, v);
Py_DECREF(key);
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