Skip to content

Commit 3c3afe4

Browse files
committed
bigger type around @clz
shoutouts to ziglang/zig#3806
1 parent d5c4b94 commit 3c3afe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn oneArch(
111111
});
112112

113113
for (map.keys(), map.values()) |k, v| {
114-
if (@clz(v) + @ctz(v) != 63) {
114+
if (@as(usize, @clz(v)) + @ctz(v) != 63) {
115115
std.debug.print("not a flag: {s} = {d}\n", .{ k, v });
116116
any_bad = true;
117117
}

0 commit comments

Comments
 (0)