From a996cfc5361e6872eaf993c041cece40570c3bc8 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 4 Jun 2022 04:47:52 -0400 Subject: [PATCH] fix --- core/slice/heap/heap.odin | 3 +-- 1 file changed, 1 insertion(+), 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) } }