factor/basis/heaps
Samuel Tardieu 2cfa457258 Fix bugs in heap-delete
When an entry is kept to be use later with `heap-delete`, its `index`
in the owning heap is automatically updated as the entry sifts up
or down.

However, if the entry is removed from the heap via either a `heap-pop`
or a `heap-delete` operation, its index is not invalidated and
the entry can still be used later with `heap-delete` and remove the
wrong element from the heap.

This patch invalidates entries when they leave the heap by setting
their index to `f`, and check the index in `entry>index`.
2019-01-04 07:27:28 -08:00
..
authors.txt
heaps-docs.factor heaps: fix docs for slurp-heap. 2014-12-15 08:56:24 -08:00
heaps-tests.factor Fix bugs in heap-delete 2019-01-04 07:27:28 -08:00
heaps.factor Fix bugs in heap-delete 2019-01-04 07:27:28 -08:00
summary.txt
tags.txt