Fix: @ctz - expected 1 argument, found 2

This commit is contained in:
Vaughan Rouesnel
2022-11-12 01:00:13 +01:00
parent a8440ddf5d
commit 87f91bdac7

View File

@@ -1397,7 +1397,7 @@ pub fn copyLatin1IntoUTF8StopOnNonASCII(buf_: []u8, comptime Type: type, latin1_
buf[0..size].* = @bitCast([size]u8, bytes);
assert(mask > 0);
const first_set_byte = @ctz(Int, mask) / 8;
const first_set_byte = @ctz(@as(Int, mask)) / 8;
if (comptime Environment.allow_assert) {
assert(latin1[first_set_byte] >= 127);
}