diff --git a/src/kernel/bitmap.zig b/src/kernel/bitmap.zig index f135253..50b71ff 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(.unsigned, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable)); + pub const IndexType = std.meta.Int(.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(.unsigned, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable)); + pub const IndexType = std.meta.Int(.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 79a93b4..125690e 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(.unsigned, std.math.log2(QUEUE_SIZE)); +const QueueIndex = std.meta.Int(.unsigned, std.math.log2(QUEUE_SIZE)); /// A keyboard buffer that stores keyboard actions. This corresponds to a single hardware keyboard pub const Keyboard = struct {