diff options
| -rw-r--r-- | numpy/core/src/umath/ufunc_type_resolution.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/src/umath/ufunc_type_resolution.c b/numpy/core/src/umath/ufunc_type_resolution.c index 4943eb023..6a16692b0 100644 --- a/numpy/core/src/umath/ufunc_type_resolution.c +++ b/numpy/core/src/umath/ufunc_type_resolution.c @@ -1555,8 +1555,9 @@ set_ufunc_loop_data_types(PyUFuncObject *self, PyArrayObject **op, * Copy the dtype from 'op' if the type_num matches, * to preserve metadata. */ - } else if (op[i] != NULL && - PyArray_DESCR(op[i])->type_num == type_nums[i]) { + } + else if (op[i] != NULL && + PyArray_DESCR(op[i])->type_num == type_nums[i]) { out_dtypes[i] = ensure_dtype_nbo(PyArray_DESCR(op[i])); Py_XINCREF(out_dtypes[i]); } |
