From 16f2ab895f148c02afd7db689ef148853f6f0899 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 10 Jun 2021 12:26:50 -0400 Subject: [PATCH] fixed darwin type warning --- hook/darwin/hook_c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hook/darwin/hook_c.h b/hook/darwin/hook_c.h index 382c0d3..f4da3c1 100644 --- a/hook/darwin/hook_c.h +++ b/hook/darwin/hook_c.h @@ -597,8 +597,8 @@ static inline void process_system_key(uint64_t timestamp, CGEventRef event_ref) #endif // int - uint16_t key_code = ((uint16_t)data & 0xFFFF0000) >> 16; - uint16_t key_flags = ((uint16_t)data & 0xFFFF); + uint64_t key_code = ((uint64_t)data & 0xFFFF0000) >> 16; + uint64_t key_flags = ((uint64_t)data & 0xFFFF); //int key_state = (key_flags & 0xFF00) >> 8; bool key_down = (key_flags & 0x1) > 0;