mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-02 00:37:56 +00:00
fix quick_sort_proc calling quick_sort instead of recursively calling itself
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user