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
d7df2b4c
Commit
d7df2b4c
authored
Jun 26, 2017
by
Pedro Gonnet
Browse files
fix case when c == c->super.
parent
71145a19
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
d7df2b4c
...
...
@@ -1329,12 +1329,16 @@ void cell_activate_drift_part(struct cell *c, struct scheduler *s) {
/* Set the do_sub_drifts all the way up and activate the super drift
if this has not yet been done. */
for
(
struct
cell
*
parent
=
c
->
parent
;
parent
!=
NULL
&&
!
parent
->
do_sub_drift
;
parent
=
parent
->
parent
)
{
parent
->
do_sub_drift
=
1
;
if
(
parent
==
c
->
super
)
{
scheduler_activate
(
s
,
parent
->
drift_part
);
break
;
if
(
c
==
c
->
super
)
{
scheduler_activate
(
s
,
c
->
drift_part
);
}
else
{
for
(
struct
cell
*
parent
=
c
->
parent
;
parent
!=
NULL
&&
!
parent
->
do_sub_drift
;
parent
=
parent
->
parent
)
{
parent
->
do_sub_drift
=
1
;
if
(
parent
==
c
->
super
)
{
scheduler_activate
(
s
,
parent
->
drift_part
);
break
;
}
}
}
}
...
...
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