diff options
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r-- | src/util/container_heap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c index ef6bcc892..059a5b253 100644 --- a/src/util/container_heap.c +++ b/src/util/container_heap.c | |||
@@ -292,11 +292,8 @@ insert_node (struct GNUNET_CONTAINER_Heap *heap, | |||
292 | 292 | ||
293 | GNUNET_assert (node->parent == NULL); | 293 | GNUNET_assert (node->parent == NULL); |
294 | while ((heap->order == GNUNET_CONTAINER_HEAP_ORDER_MAX) ? (pos->cost >= | 294 | while ((heap->order == GNUNET_CONTAINER_HEAP_ORDER_MAX) ? (pos->cost >= |
295 | node-> | 295 | node->cost) |
296 | cost) : (pos-> | 296 | : (pos->cost <= node->cost)) |
297 | cost <= | ||
298 | node-> | ||
299 | cost)) | ||
300 | { | 297 | { |
301 | /* node is descendent of pos */ | 298 | /* node is descendent of pos */ |
302 | pos->tree_size += (1 + node->tree_size); | 299 | pos->tree_size += (1 + node->tree_size); |