Browse Source

fix EventMaskAny definition

Laytan Laats 11 months ago
parent
commit
201a7b90bb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/sys/darwin/Foundation/NSEvent.odin

+ 2 - 2
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 {
 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
 	// We don't support a 32-bit darwin system but this is mostly to shut up the type checker for the time being