summaryrefslogtreecommitdiffstats
path: root/src/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heap.c')
-rw-r--r--src/heap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/heap.c b/src/heap.c
index 0d1a661..e93abe3 100644
--- a/src/heap.c
+++ b/src/heap.c
@@ -1,4 +1,4 @@
-/* heap.c - a linked heap implementation
+/* heap.c - an array based d-ary heap implementation
*
* Copyright (C) 2009 Timo Teräs <timo.teras@iki.fi>
* All rights reserved.
@@ -151,7 +151,6 @@ void tf_heap_delete(struct tf_heap_node *node, struct tf_heap_head *head)
head->item[index] = head->item[head->num_items+TF_HEAP_ITEM0];
tf_heap_heapify(head, index);
}
- head->item[head->num_items+TF_HEAP_ITEM0].ptr = NULL;
node->index = 0;
}