Skip to content

Commit

Permalink
BUG: core: inplace ops don't have corresponding rhs ops, so no need t…
Browse files Browse the repository at this point in the history
…o check the slot
  • Loading branch information
pv authored and mhvk committed Apr 5, 2015
1 parent 367b409 commit 6ba4fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/number.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ needs_right_binop_forward(PyObject *self, PyObject *other,
#define GIVE_UP_IF_HAS_RIGHT_BINOP(m1, m2, left_name, right_name, inplace, slot_name) \
do { \
if (needs_right_binop_forward((PyObject *)m1, m2, right_name, inplace) && \
!SAME_SLOTS(m1, m2, slot_name)) { \
(inplace || !SAME_SLOTS(m1, m2, slot_name))) { \
Py_INCREF(Py_NotImplemented); \
return Py_NotImplemented; \
} \
Expand Down

0 comments on commit 6ba4fed

Please sign in to comment.