From 0b0778f9813d1327a593e17a5e482b2acb584522 Mon Sep 17 00:00:00 2001 From: TheRadischen Date: Sun, 16 Aug 2026 15:24:19 +0200 Subject: [PATCH] morestyle improvements mybe this is it? --- core/slice/sort_private.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/slice/sort_private.odin b/core/slice/sort_private.odin index 7148b1297..54a92d986 100644 --- a/core/slice/sort_private.odin +++ b/core/slice/sort_private.odin @@ -74,10 +74,10 @@ _stable_sort_general :: proc(data: $T/[]$E, call: $P, $KIND: Sort_Kind) where (O n := len(data) for n > 0 { - half := n / 2 - mid := from + half + half := n / 2 + mid := from + half - if less(value, data[mid], call) { + if less(value, data[mid], call) { n = half } else { from = mid + 1