fix bug in expect handling on the cli side

This commit is contained in:
Folkert 2022-07-25 22:37:36 +02:00
parent d3cb0e03d4
commit 6d0e751999
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 64 additions and 22 deletions

View file

@ -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];
}