mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Fix @as and @intCast argument order
This commit is contained in:
parent
632903bbde
commit
bca6417a9d
1 changed files with 1 additions and 1 deletions
|
@ -1681,7 +1681,7 @@ fn sliceHelp(bytes: [*]const u8, length: usize) RocList {
|
|||
}
|
||||
|
||||
fn toErrUtf8ByteResponse(index: usize, problem: Utf8ByteProblem) FromUtf8Result {
|
||||
return FromUtf8Result{ .is_ok = false, .string = RocStr.empty(), .byte_index = @as(index, @intCast(u64)), .problem_code = problem };
|
||||
return FromUtf8Result{ .is_ok = false, .string = RocStr.empty(), .byte_index = @as(u64, @intCast(index)), .problem_code = problem };
|
||||
}
|
||||
|
||||
// NOTE on memory: the validate function consumes a RC token of the input. Since
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue