summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/npysort/selection.c.src8
1 files changed, 2 insertions, 6 deletions
diff --git a/numpy/core/src/npysort/selection.c.src b/numpy/core/src/npysort/selection.c.src
index b11753367..073b5847f 100644
--- a/numpy/core/src/npysort/selection.c.src
+++ b/numpy/core/src/npysort/selection.c.src
@@ -176,12 +176,8 @@ static npy_intp @name@median5_@suff@(
}
}
else {
- if (@TYPE@_LT(v[IDX(2)], v[IDX(1)])) {
- return 1;
- }
- else {
- return 2;
- }
+ /* v[1] and v[2] swapped into order above */
+ return 2;
}
}