aboutsummaryrefslogtreecommitdiff
path: root/src/Type.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-06-18 10:59:09 -0400
committerAndrew Kelley <andrew@ziglang.org>2025-07-22 19:43:47 -0700
commit5060ab99c94dd8afc8b84e74fe4d050c88cdfc0a (patch)
treecbf778a4b590aee34366bb5fc00091d5d60c2d72 /src/Type.zig
parenta023b9b22b6593ebd5a86736a4a9955840d1bfa1 (diff)
downloadzig-5060ab99c94dd8afc8b84e74fe4d050c88cdfc0a.tar.gz
zig-5060ab99c94dd8afc8b84e74fe4d050c88cdfc0a.zip
aarch64: add new from scratch self-hosted backend
Diffstat (limited to 'src/Type.zig')
-rw-r--r--src/Type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Type.zig b/src/Type.zig
index a199811c8e..9316bec11e 100644
--- a/src/Type.zig
+++ b/src/Type.zig
@@ -4166,7 +4166,7 @@ pub const generic_poison: Type = .{ .ip_index = .generic_poison_type };
pub fn smallestUnsignedBits(max: u64) u16 {
return switch (max) {
0 => 0,
- else => 1 + std.math.log2_int(u64, max),
+ else => @as(u16, 1) + std.math.log2_int(u64, max),
};
}