From 87f91bdac7681e2a983ac08e340d46786c69b2e5 Mon Sep 17 00:00:00 2001 From: Vaughan Rouesnel Date: Sat, 12 Nov 2022 01:00:13 +0100 Subject: [PATCH] Fix: @ctz - expected 1 argument, found 2 --- src/string_immutable.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_immutable.zig b/src/string_immutable.zig index ba69b1627a..7dcf390a0e 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); }