summaryrefslogtreecommitdiff
path: root/numpy/lib/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/src')
-rw-r--r--numpy/lib/src/_compiled_base.c4
1 files changed, 2 insertions, 2 deletions
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);