Update to zig master

This commit is contained in:
Sam Tebbs 2020-10-18 18:59:20 +01:00
parent 39b857df5c
commit 9005cce68b
3 changed files with 4 additions and 4 deletions

View file

@ -578,5 +578,5 @@ pub fn init(mem_profile: *const MemProfile) void {
} }
test "" { test "" {
std.meta.refAllDecls(@This()); std.testing.refAllDecls(@This());
} }

View file

@ -23,7 +23,7 @@ pub fn ComptimeBitmap(comptime BitmapType: type) type {
pub const BITMAP_FULL = std.math.maxInt(BitmapType); 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 /// 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, bitmap: BitmapType,
num_free_entries: BitmapType, num_free_entries: BitmapType,
@ -202,7 +202,7 @@ pub fn Bitmap(comptime BitmapType: type) type {
pub const BITMAP_FULL = std.math.maxInt(BitmapType); 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 /// 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_bitmaps: usize,
num_entries: usize, num_entries: usize,

View file

@ -125,7 +125,7 @@ pub const KeyAction = struct {
}; };
/// The type used to index the keyboard queue /// 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 /// A keyboard buffer that stores keyboard actions. This corresponds to a single hardware keyboard
pub const Keyboard = struct { pub const Keyboard = struct {