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