From 7ed1d931cb10ba15268dad91cdd781e7bc0a8a25 Mon Sep 17 00:00:00 2001 From: Joshua Mark Manton Date: Sun, 3 Jun 2018 11:27:57 -0700 Subject: [PATCH] fix quick_sort_proc calling quick_sort instead of recursively calling itself --- core/sort/sort.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sort/sort.odin b/core/sort/sort.odin index b69102b8e..4b69c8c81 100644 --- a/core/sort/sort.odin +++ b/core/sort/sort.odin @@ -69,8 +69,8 @@ quick_sort_proc :: proc(array: $A/[]$T, f: proc(T, T) -> int) { j -= 1; } - quick_sort(a[0..i], f); - quick_sort(a[i..n], f); + quick_sort_proc(a[0..i], f); + quick_sort_proc(a[i..n], f); } quick_sort :: proc(array: $A/[]$T) {