Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
54db70bf
Commit
54db70bf
authored
Oct 28, 2015
by
Matthieu Schaller
Browse files
Removed an unecessary condition that GCC optimizes out and produces a warning blocking compilation.
parent
6db5ecea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
54db70bf
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment