diff options
| author | Joshua Mark Manton <joshuamarkk@gmail.com> | 2018-06-03 11:27:57 -0700 |
|---|---|---|
| committer | Joshua Mark Manton <joshuamarkk@gmail.com> | 2018-06-03 11:27:57 -0700 |
| commit | 7ed1d931cb10ba15268dad91cdd781e7bc0a8a25 (patch) | |
| tree | 241055f6e467658e5dae82379ea96ac678b45ef8 | |
| parent | 2570296b01c3724f5a507d5b24f39e5e5540c7a9 (diff) | |
fix quick_sort_proc calling quick_sort instead of recursively calling itself
| -rw-r--r-- | core/sort/sort.odin | 4 |
1 files 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) { |