glfw: glfw.mod.Mods -> glfw.Mods, etc. & fix test compilation

Helps hexops/mach#37

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-10-30 12:13:57 -07:00 committed by Stephen Gutekanst
parent 32fa90eca9
commit ab01edee1c
3 changed files with 37 additions and 37 deletions

View file

@ -20,7 +20,7 @@ pub const Hat = packed struct {
}
}
pub inline fn toInt(comptime IntType: type, self: Hat) IntType {
pub inline fn toInt(self: Hat, comptime IntType: type) IntType {
verifyIntType(IntType);
return @bitCast(IntType, self);
}