aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/heap.c b/heap.c
index ea33b16..4d4fcc8 100644
--- a/heap.c
+++ b/heap.c
@@ -32,7 +32,7 @@ fixup(T heap[], size_t i)
32 size_t p = PARENT(i); 32 size_t p = PARENT(i);
33 33
34 while ( i > 0 && heap[p] < heap[i] ) { 34 while ( i > 0 && heap[p] < heap[i] ) {
35 swap(heap, i, p); 35 swap(heap, p, i);
36 36
37 i = p; 37 i = p;
38 p = PARENT(i); 38 p = PARENT(i);