fix quick_sort_proc calling quick_sort instead of recursively calling itself

This commit is contained in:
Joshua Mark Manton
2018-06-03 11:27:57 -07:00
parent 2570296b01
commit 7ed1d931cb

View File

@@ -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) {