From b87b3cfad29073e7c17aa8f57b5f68063807a046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gr=C3=A9goire?= Date: Thu, 14 May 2026 09:06:30 -0400 Subject: [PATCH] everywhere: use @Int instead of std.meta --- src/kern/log_ring.zig | 4 ++-- src/rtl/bitmap.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kern/log_ring.zig b/src/kern/log_ring.zig index 9b1dcc8..e4705e2 100644 --- a/src/kern/log_ring.zig +++ b/src/kern/log_ring.zig @@ -77,8 +77,8 @@ const DescState = enum(u2) { const usize_bits = @bitSizeOf(usize); // Id is a monotonically increasing counter. `id & desc_mask` maps to the physical array index. -const Id = std.meta.Int(.unsigned, usize_bits - 2); -const IdSigned = std.meta.Int(.signed, usize_bits - 2); +const Id = @Int(.unsigned, usize_bits - 2); +const IdSigned = @Int(.signed, usize_bits - 2); const State = packed struct(usize) { id: Id, diff --git a/src/rtl/bitmap.zig b/src/rtl/bitmap.zig index b6e1dc3..a599afb 100644 --- a/src/rtl/bitmap.zig +++ b/src/rtl/bitmap.zig @@ -2,7 +2,7 @@ const std = @import("std"); fn get_closest_type(comptime N: usize) type { const bits = std.math.ceilPowerOfTwo(usize, N) catch unreachable; - return std.meta.Int(.unsigned, bits); + return @Int(.unsigned, bits); } /// Static bitmap that uses the most efficient underlying word size for N < 64