Browse Source

fix quick_sort_proc calling quick_sort instead of recursively calling itself

Joshua Mark Manton 7 years ago
parent
commit
7ed1d931cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/sort/sort.odin

+ 2 - 2
core/sort/sort.odin

@@ -69,8 +69,8 @@ quick_sort_proc :: proc(array: $A/[]$T, f: proc(T, T) -> int) {
 		j -= 1;
 		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) {
 quick_sort :: proc(array: $A/[]$T) {