Skip to content

Commit

Permalink
fix EventMaskAny definition
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Sep 11, 2024
1 parent 27ed107 commit 201a7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/sys/darwin/Foundation/NSEvent.odin
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Event :: struct {using _: Object}



EventMask :: distinct bit_set[EventType; UInteger]
EventMaskAny :: ~EventMask{}
EventMask :: distinct bit_set[EventType; UInteger]
EventMaskAny :: transmute(EventMask)(max(UInteger))

when size_of(UInteger) == 4 {
// We don't support a 32-bit darwin system but this is mostly to shut up the type checker for the time being
Expand Down

0 comments on commit 201a7b9

Please sign in to comment.