summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2021-01-12 17:16:36 -0700
committerAlex Henrie <alexhenrie24@gmail.com>2021-01-12 17:16:36 -0700
commit124ad55c34117b1f1562dbd6d4e5641292c53a4b (patch)
treedd041f826bc15d16f03eacf784b828a50428a409 /numpy
parente745a19cb0ea9af0fd252a4625ec793130f87414 (diff)
downloadnumpy-124ad55c34117b1f1562dbd6d4e5641292c53a4b.tar.gz
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.c2
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 = '-';