Branch: Tag:

2016-02-26

2016-02-26 08:44:10 by Martin Karlgren <marty@roxen.com>

ADT.Heap: Update pos of bumped entry in remove().

This fixes an inconsistency issue that would sometimes arise after
remove operations.

214:       value = values[pos];    values[pos] = values[--num_values]; +  values[pos]->pos = pos;    values[num_values] = 0;    value->pos = -1;    if (pos < num_values) {