From 2feb1bf847cd4a113507c5c18b95874f125c2782 Mon Sep 17 00:00:00 2001 From: Despacito696969 <56641258+Despacito696969@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:46:32 +0200 Subject: [PATCH] Commit `a040be9` but for core:sort --- core/sort/sort.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sort/sort.odin b/core/sort/sort.odin index a2b4d7ea0..ad972ef8e 100644 --- a/core/sort/sort.odin +++ b/core/sort/sort.odin @@ -259,7 +259,7 @@ _quick_sort :: proc(it: Interface, a, b, max_depth: int) { a, b, max_depth := a, b, max_depth - if b-a > 12 { // only use shell sort for lengths <= 12 + for b-a > 12 { // only use shell sort for lengths <= 12 if max_depth == 0 { heap_sort(it, a, b) return