diff options
author | 2022-11-12 01:00:13 +0100 | |
---|---|---|
committer | 2022-11-12 01:00:13 +0100 | |
commit | 87f91bdac7681e2a983ac08e340d46786c69b2e5 (patch) | |
tree | 98371627b7ef4b3abfb234cce7ad427abdd97141 | |
parent | a8440ddf5d250a9d5b005ef64d62379054dde738 (diff) | |
download | bun-87f91bdac7681e2a983ac08e340d46786c69b2e5.tar.gz bun-87f91bdac7681e2a983ac08e340d46786c69b2e5.tar.zst bun-87f91bdac7681e2a983ac08e340d46786c69b2e5.zip |
Fix: @ctz - expected 1 argument, found 2
-rw-r--r-- | src/string_immutable.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index ba69b1627..7dcf390a0 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -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); } |