Skip to content

Commit 6ccada5

Browse files
charrisseberg
andcommitted
MAINT: Update numpy/_core/src/umath/dispatching.c
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
1 parent 3c6b8ee commit 6ccada5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

numpy/_core/src/umath/dispatching.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ promote_and_get_ufuncimpl(PyUFuncObject *ufunc,
996996
npy_promotion_state = NPY_USE_WEAK_PROMOTION;
997997
PyObject *info = promote_and_get_info_and_ufuncimpl(ufunc,
998998
ops, signature, op_dtypes, legacy_promotion_is_possible);
999-
set_npy_promotion_state(current_promotion_state);
999+
npy_promotion_state = current_promotion_state;
10001000

10011001
if (info == NULL) {
10021002
goto handle_error;

0 commit comments

Comments
 (0)