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
dd81b742
Commit
dd81b742
authored
Jan 11, 2016
by
Pedro Gonnet
Browse files
forgot to set 'res'.
parent
4d345471
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/queue.c
View file @
dd81b742
...
...
@@ -212,6 +212,9 @@ struct task *queue_gettask(struct queue *q, const struct task *prev, int blockin
/* Another one bites the dust. */
const
int
qcount
=
q
->
count
-=
1
;
/* Get a pointer on the task that we want to return. */
res
=
&
qtasks
[
tid
];
/* Swap this task with the last task and re-heap. */
int
k
=
ind
;
...
...
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