Branch: Tag:

1999-12-31

1999-12-31 02:30:08 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix

Rev: lib/modules/ADT.pmod/Heap.pike:1.2

54:   {    int parent=(elem-1)/2;    +  if(!elem) return 0; +     if(values[elem] < values[parent])    {    SWAP(elem, parent);
72:   void push(mixed value)   {    if(num_values >= sizeof(values)) -  values+=allocate(10+sizeof(values)/16); +  values+=allocate(10+sizeof(values)/4);       values[num_values++]=value;    adjust_up(num_values-1);