mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
fix a another bug caught by fuzzing
This commit is contained in:
parent
7747f06504
commit
22896d309a
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ fn flux_analyze(
|
|||
} else {
|
||||
if (compare_inc(cmp, cmp_data, ptr_c, ptr_c + element_width, data_is_owned, inc_n_data) != GT) {
|
||||
// First half needs merge, second half sorted.
|
||||
@memcpy((swap + half2 * element_width)[0..(half2 * element_width)], (array + half2 * element_width)[0..(half2 * element_width)]);
|
||||
@memcpy((swap + half1 * element_width)[0..(half2 * element_width)], (array + half1 * element_width)[0..(half2 * element_width)]);
|
||||
cross_merge(swap, array, quad1, quad2, cmp, cmp_data, element_width, copy, data_is_owned, inc_n_data);
|
||||
} else {
|
||||
// Both halves need merge.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue