mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Sorting functions correctly took slices by value, but also other types by value. Now, only slices are accepted by value, other containers are always by ref.
This commit is contained in:
@@ -84,7 +84,7 @@ fn void insertionsort_list()
|
||||
{
|
||||
InsertionSortTestList list;
|
||||
list.push_all({ 2, 1, 3});
|
||||
sort::insertionsort(list, &sort::cmp_int_value);
|
||||
sort::insertionsort(&list, &sort::cmp_int_value);
|
||||
assert(check::int_ascending_sort(list.array_view()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user