diff --git a/src/kernel/arch/x86/arch.zig b/src/kernel/arch/x86/arch.zig index 256f37a..fea6290 100644 --- a/src/kernel/arch/x86/arch.zig +++ b/src/kernel/arch/x86/arch.zig @@ -578,5 +578,5 @@ pub fn init(mem_profile: *const MemProfile) void { } test "" { - std.meta.refAllDecls(@This()); + std.testing.refAllDecls(@This()); } diff --git a/src/kernel/bitmap.zig b/src/kernel/bitmap.zig index b5c4ab7..7c665be 100644 --- a/src/kernel/bitmap.zig +++ b/src/kernel/bitmap.zig @@ -23,7 +23,7 @@ pub fn ComptimeBitmap(comptime BitmapType: type) type { pub const BITMAP_FULL = std.math.maxInt(BitmapType); /// The type of an index into a bitmap entry. The smallest integer needed to represent all bit positions in the bitmap entry type - pub const IndexType = std.meta.IntType(false, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable)); + pub const IndexType = std.meta.IntType(.unsigned, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable)); bitmap: BitmapType, num_free_entries: BitmapType, @@ -202,7 +202,7 @@ pub fn Bitmap(comptime BitmapType: type) type { pub const BITMAP_FULL = std.math.maxInt(BitmapType); /// The type of an index into a bitmap entry. The smallest integer needed to represent all bit positions in the bitmap entry type - pub const IndexType = std.meta.IntType(false, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable)); + pub const IndexType = std.meta.IntType(.unsigned, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable)); num_bitmaps: usize, num_entries: usize, diff --git a/src/kernel/keyboard.zig b/src/kernel/keyboard.zig index 1b00103..79a93b4 100644 --- a/src/kernel/keyboard.zig +++ b/src/kernel/keyboard.zig @@ -125,7 +125,7 @@ pub const KeyAction = struct { }; /// The type used to index the keyboard queue -const QueueIndex = std.meta.IntType(false, std.math.log2(QUEUE_SIZE)); +const QueueIndex = std.meta.IntType(.unsigned, std.math.log2(QUEUE_SIZE)); /// A keyboard buffer that stores keyboard actions. This corresponds to a single hardware keyboard pub const Keyboard = struct {