Commit 54db70bf authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Removed an unecessary condition that GCC optimizes out and produces a warning blocking compilation.

parent 6db5ecea
...@@ -592,7 +592,7 @@ void parts_sort(struct part *parts, struct xpart *xparts, int *ind, int N, ...@@ -592,7 +592,7 @@ void parts_sort(struct part *parts, struct xpart *xparts, int *ind, int N,
} else { } else {
/* Recurse on the right? */ /* Recurse on the right? */
if (jj + 1 < j && pivot + 1 < max) { if (pivot + 1 < max) {
qid = (last++) % qstack_size; qid = (last++) % qstack_size;
qstack[qid].i = jj + 1; qstack[qid].i = jj + 1;
qstack[qid].j = j; qstack[qid].j = j;
...@@ -732,7 +732,7 @@ void gparts_sort(struct gpart *gparts, int *ind, int N, int min, int max) { ...@@ -732,7 +732,7 @@ void gparts_sort(struct gpart *gparts, int *ind, int N, int min, int max) {
} else { } else {
/* Recurse on the right? */ /* Recurse on the right? */
if (jj + 1 < j && pivot + 1 < max) { if (pivot + 1 < max) {
qid = (last++) % qstack_size; qid = (last++) % qstack_size;
qstack[qid].i = jj + 1; qstack[qid].i = jj + 1;
qstack[qid].j = j; qstack[qid].j = j;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment