Skip to content
GitLab
Menu
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
b88b284a
Commit
b88b284a
authored
Oct 27, 2015
by
Matthieu Schaller
Browse files
Rolled back the last commit. Clearly signed arithmetic is necessary here.
parent
e763cea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
b88b284a
...
...
@@ -542,10 +542,10 @@ void space_do_parts_sort() {
if
(
!
space_sort_struct
.
waiting
)
return
;
/* Get the stack entry. */
unsigned
int
i
=
space_sort_struct
.
stack
[
qid
].
i
;
unsigned
int
j
=
space_sort_struct
.
stack
[
qid
].
j
;
unsigned
int
min
=
space_sort_struct
.
stack
[
qid
].
min
;
unsigned
int
max
=
space_sort_struct
.
stack
[
qid
].
max
;
int
i
=
space_sort_struct
.
stack
[
qid
].
i
;
int
j
=
space_sort_struct
.
stack
[
qid
].
j
;
int
min
=
space_sort_struct
.
stack
[
qid
].
min
;
int
max
=
space_sort_struct
.
stack
[
qid
].
max
;
space_sort_struct
.
stack
[
qid
].
ready
=
0
;
/* Loop over sub-intervals. */
...
...
@@ -654,8 +654,8 @@ void gparts_sort(struct gpart *gparts, int *ind, int N, int min, int max) {
int
qstack_size
=
2
*
(
max
-
min
)
+
10
;
volatile
unsigned
int
first
,
last
,
waiting
;
unsigned
int
pivot
;
unsigned
int
i
,
ii
,
j
,
jj
,
temp_i
,
qid
;
int
pivot
;
int
i
,
ii
,
j
,
jj
,
temp_i
,
qid
;
struct
gpart
temp_p
;
/* for ( int k = 0 ; k < N ; k++ )
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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