From b8a6eb61ffa3199ced987d44aeb331dcff299eb7 Mon Sep 17 00:00:00 2001 From: jaimefrio Date: Tue, 11 Feb 2014 23:01:30 -0800 Subject: MANT: separated initial assignment for `min` and `max` --- numpy/lib/src/_compiled_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/src') diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c index 7ac4bcc5b..0f238a12a 100644 --- a/numpy/lib/src/_compiled_base.c +++ b/numpy/lib/src/_compiled_base.c @@ -109,8 +109,8 @@ check_array_monotonic(const double *a, npy_int lena) static void minmax(const npy_intp *data, npy_intp data_len, npy_intp *mn, npy_intp *mx) { - npy_intp min; - npy_intp max = min = *data; + npy_intp min = *data; + npy_intp max = *data; while (--data_len) { const npy_intp val = *(++data); -- cgit v1.2.1