mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
don't change the old builtins
This commit is contained in:
parent
dca8afff7c
commit
634dfb1972
1 changed files with 3 additions and 3 deletions
|
@ -517,9 +517,9 @@ pub fn listSwap(
|
|||
const source_ptr = @as([*]u8, @ptrCast(newList.bytes));
|
||||
|
||||
swapElements(source_ptr, element_width, @as(usize,
|
||||
// We already verified that both indices are less than the stored list length,
|
||||
// which is usize, so casting them to usize will definitely be lossless.
|
||||
@intCast(index_1)), @as(usize, @intCast(index_2)), copy);
|
||||
// We already verified that both indices are less than the stored list length,
|
||||
// which is usize, so casting them to usize will definitely be lossless.
|
||||
@intCast(index_1)), @as(usize, @intCast(index_2)), copy);
|
||||
|
||||
return newList;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue