Skip to content

Commit

Permalink
Fix #28
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Garrisi committed Dec 16, 2020
1 parent 352b3e6 commit 4609d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ where
*self.qp.get_unchecked_mut(*heap_pos) = pos;
}
}
self.heapify(pos);
self.heapify(parent(pos));
}
}

Expand Down

0 comments on commit 4609d8b

Please sign in to comment.