diff options
| author | Thomas Schmucker <ts@its1.de> | 2020-11-29 17:07:07 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2020-11-29 17:07:07 +0100 |
| commit | 728b55d00f035c729059bf2e3f381a718ac3e149 (patch) | |
| tree | c9419cc37e14201ffac06183208e57e8c9a1b2d6 /heap.c | |
| parent | 15f76faad1ea8b13294e08fdf8f95e8f7df4cae1 (diff) | |
| download | data-structures-728b55d00f035c729059bf2e3f381a718ac3e149.tar.gz data-structures-728b55d00f035c729059bf2e3f381a718ac3e149.tar.bz2 data-structures-728b55d00f035c729059bf2e3f381a718ac3e149.zip | |
einheitliche Parameterreihenfolge...
Diffstat (limited to 'heap.c')
| -rw-r--r-- | heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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); |
