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:
parent
32fa90eca9
commit
ab01edee1c
3 changed files with 37 additions and 37 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue