mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
remove wrong assert
This commit is contained in:
parent
285c43e288
commit
400393a531
1 changed files with 1 additions and 3 deletions
|
@ -3017,7 +3017,7 @@ test "quad_reversal" {
|
|||
// Below are functions for sorting under 32 element arrays.
|
||||
|
||||
/// Uses swap space to sort the tail of an array.
|
||||
/// The array should be under 32 elements in length.
|
||||
/// The array should generally be under 32 elements in length.
|
||||
fn tail_swap(
|
||||
array: [*]u8,
|
||||
len: usize,
|
||||
|
@ -3029,8 +3029,6 @@ fn tail_swap(
|
|||
comptime data_is_owned: bool,
|
||||
inc_n_data: IncN,
|
||||
) void {
|
||||
std.debug.assert(len < 32);
|
||||
|
||||
if (len < 8) {
|
||||
tiny_sort(array, len, swap, cmp, cmp_data, element_width, copy, data_is_owned, inc_n_data);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue