aboutsummaryrefslogtreecommitdiff
path: root/core/sys/darwin
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-09-12 00:11:27 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-09-12 00:11:27 +0200
commit201a7b90bb52facf9bd364a96061fc6c19e19031 (patch)
treed97e29928e68a5f50d71066f09345db81ba2f4a1 /core/sys/darwin
parent27ed10746db72fd3e5ba9aea922cb064aa3f8995 (diff)
fix EventMaskAny definition
Diffstat (limited to 'core/sys/darwin')
-rw-r--r--core/sys/darwin/Foundation/NSEvent.odin4
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