Merge pull request #554 from terickson001/merge-sort-proc

Removed 'where' clause from merge_sort_proc
This commit is contained in:
gingerBill
2020-02-04 18:46:28 +00:00
committed by GitHub

View File

@@ -103,7 +103,7 @@ _log2 :: proc(x: int) -> int {
return res;
}
merge_sort_proc :: proc(array: $A/[]$T, f: proc(T, T) -> int) where intrinsics.type_is_ordered(T) {
merge_sort_proc :: proc(array: $A/[]$T, f: proc(T, T) -> int) {
merge :: proc(a: A, start, mid, end: int, f: proc(T, T) -> int) {
s, m := start, mid;