aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-11-29 17:07:07 +0100
committerThomas Schmucker <ts@its1.de>2020-11-29 17:07:07 +0100
commit728b55d00f035c729059bf2e3f381a718ac3e149 (patch)
treec9419cc37e14201ffac06183208e57e8c9a1b2d6
parent15f76faad1ea8b13294e08fdf8f95e8f7df4cae1 (diff)
downloaddata-structures-728b55d00f035c729059bf2e3f381a718ac3e149.tar.gz
data-structures-728b55d00f035c729059bf2e3f381a718ac3e149.tar.bz2
data-structures-728b55d00f035c729059bf2e3f381a718ac3e149.zip
einheitliche Parameterreihenfolge...
-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);