diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-01-14 13:20:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 13:20:12 -0600 |
commit | 5c7002926ec8ad12785b36024f9da80b7017ad1c (patch) | |
tree | 9c0760b97aacdc8829d87ccae336b17147eda7db /numpy | |
parent | 9054ae60ee6989743f3cebfd7faf4f38c0e24756 (diff) | |
parent | 124ad55c34117b1f1562dbd6d4e5641292c53a4b (diff) | |
download | numpy-5c7002926ec8ad12785b36024f9da80b7017ad1c.tar.gz |
Merge pull request #18157 from alexhenrie/no_castable_output
BUG: Initialize value of no_castable_output used in ufunc_loop_matches
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/umath/ufunc_type_resolution.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_type_resolution.c b/numpy/core/src/umath/ufunc_type_resolution.c index 3ce06322f..be48be079 100644 --- a/numpy/core/src/umath/ufunc_type_resolution.c +++ b/numpy/core/src/umath/ufunc_type_resolution.c @@ -2020,7 +2020,7 @@ type_tuple_type_resolver(PyUFuncObject *self, int n_specified = 0; int specified_types[NPY_MAXARGS], types[NPY_MAXARGS]; const char *ufunc_name; - int no_castable_output, use_min_scalar; + int no_castable_output = 0, use_min_scalar; /* For making a better error message on coercion error */ char err_dst_typecode = '-', err_src_typecode = '-'; |