mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
fix bug in expect handling on the cli side
This commit is contained in:
parent
d3cb0e03d4
commit
6d0e751999
3 changed files with 64 additions and 22 deletions
|
@ -2531,7 +2531,7 @@ pub fn strCloneTo(
|
|||
const array: [@sizeOf(RocStr)]u8 = @bitCast([@sizeOf(RocStr)]u8, string);
|
||||
|
||||
var i: usize = 0;
|
||||
while (i < array.len) : (i += 1) {
|
||||
while (i < WIDTH) : (i += 1) {
|
||||
ptr[offset + i] = array[i];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue