*/
void xbt_heap_push(xbt_heap_t H, void *content, double key)
{
- int count = ++(H->count);
+ H->count += 1;
+ int count = H->count;
int size = H->size;
xbt_heap_item_t item;
item->content = content;
xbt_heap_increase_key(H, count - 1);
XBT_DEBUG("Heap has now %d elements and max elem is %g",xbt_heap_size(H),xbt_heap_maxkey(H));
- return;
}
/**
}
if (H->update_callback)
H->update_callback(items[i].content, i);
- return;
}