diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-09-12 00:11:27 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-09-12 00:11:27 +0200 |
| commit | 201a7b90bb52facf9bd364a96061fc6c19e19031 (patch) | |
| tree | d97e29928e68a5f50d71066f09345db81ba2f4a1 | |
| parent | 27ed10746db72fd3e5ba9aea922cb064aa3f8995 (diff) | |
fix EventMaskAny definition
| -rw-r--r-- | core/sys/darwin/Foundation/NSEvent.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/darwin/Foundation/NSEvent.odin b/core/sys/darwin/Foundation/NSEvent.odin index f20afd3ab..548c5c172 100644 --- a/core/sys/darwin/Foundation/NSEvent.odin +++ b/core/sys/darwin/Foundation/NSEvent.odin @@ -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 |