From 54db70bfc81f6495d2f73e644110630733ebeac3 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Wed, 28 Oct 2015 17:58:22 +0000 Subject: [PATCH] Removed an unecessary condition that GCC optimizes out and produces a warning blocking compilation. --- src/space.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/space.c b/src/space.c index b4060ee580..0c11eb8de9 100644 --- a/src/space.c +++ b/src/space.c @@ -592,7 +592,7 @@ void parts_sort(struct part *parts, struct xpart *xparts, int *ind, int N, } else { /* Recurse on the right? */ - if (jj + 1 < j && pivot + 1 < max) { + if (pivot + 1 < max) { qid = (last++) % qstack_size; qstack[qid].i = jj + 1; qstack[qid].j = j; @@ -732,7 +732,7 @@ void gparts_sort(struct gpart *gparts, int *ind, int N, int min, int max) { } else { /* Recurse on the right? */ - if (jj + 1 < j && pivot + 1 < max) { + if (pivot + 1 < max) { qid = (last++) % qstack_size; qstack[qid].i = jj + 1; qstack[qid].j = j; -- GitLab