fix quick_sort_proc calling quick_sort instead of recursively calling itself
This commit is contained in:
1 parent
2570296b01
commit
7ed1d931cb
1 file changed
+2
-2
+2
-2
@@ -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