Skip to content

Commit

Permalink
ES: Small fix in adoption
Browse files Browse the repository at this point in the history
  • Loading branch information
l4haie committed Feb 18, 2025
1 parent 4f2f8fc commit e2e9bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/host/c/es.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,9 @@ bool adopt(obj x) {
while (cfr != _NULL) {
// FIXME need to make sure that the topological order is respected to
// adopt with a cfr of the same rank as the parent
if (!is_falling(cfr) && get_rank(cfr) <= rank) {
if (!is_falling(cfr) && get_rank(cfr) < rank) {
set_parent(x, cfr, get_mirror_field(x, cfr)-3);
ovf_set_rank(x, get_rank(cfr)+1); // not sure FIXME
// ovf_set_rank(x, get_rank(cfr)+1); // not sure FIXME
return 1;
}
cfr = next_cofriend(x, cfr);
Expand Down

0 comments on commit e2e9bc7

Please sign in to comment.