aboutsummaryrefslogtreecommitdiff
path: root/core/slice/heap
diff options
context:
space:
mode:
authorDale Weiler <weilercdale@gmail.com>2022-06-04 04:47:52 -0400
committerDale Weiler <weilercdale@gmail.com>2022-06-04 04:47:52 -0400
commita996cfc5361e6872eaf993c041cece40570c3bc8 (patch)
tree49be1b275ee5fa2dda7f273543753f3244487875 /core/slice/heap
parentc1d55b92960933569860610d1548e6d715a87fce (diff)
fix
Diffstat (limited to 'core/slice/heap')
-rw-r--r--core/slice/heap/heap.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/slice/heap/heap.odin b/core/slice/heap/heap.odin
index 893e77b42..bcaadf708 100644
--- a/core/slice/heap/heap.odin
+++ b/core/slice/heap/heap.odin
@@ -30,8 +30,7 @@ make :: proc(data: []$T, compare: $C) {
// start from data parent, no need to consider children
for start := (length - 2) / 2; start >= 0; start -= 1 {
- sift_down(data, compare, start);
- start -= 1;
+ sift_down(data, compare, start)
}
}