From a819023ab7827a4b2994fda2f3dfcd74fbb268d2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Jan 2022 16:05:48 +0530 Subject: [PATCH] remove redundant cast --- glfw/cocoa_init.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m index 282279a41..8e5f0f625 100644 --- a/glfw/cocoa_init.m +++ b/glfw/cocoa_init.m @@ -525,7 +525,7 @@ build_global_shortcuts_lookup(void) { for (NSString *key in symbolic_hotkeys) { id obj = symbolic_hotkeys[key]; if (![key isKindOfClass:[NSString class]] || ![obj isKindOfClass:[NSDictionary class]]) continue; - NSInteger sc = [(NSString*)key integerValue]; + NSInteger sc = [key integerValue]; NSDictionary *sc_value = obj; id enabled = [sc_value objectForKey:@"enabled"]; if (!enabled || ![enabled isKindOfClass:[NSNumber class]] || ![(NSNumber*)enabled boolValue]) continue;