From 3a77b42de7057d2d0064691a7c3fc969c7788f1d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 12 Oct 2016 18:45:56 -0700 Subject: [PATCH] Fixed build warning --- src/video/cocoa/SDL_cocoakeyboard.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoakeyboard.m b/src/video/cocoa/SDL_cocoakeyboard.m index 5865bc3fe..2ad7bc3f5 100644 --- a/src/video/cocoa/SDL_cocoakeyboard.m +++ b/src/video/cocoa/SDL_cocoakeyboard.m @@ -200,7 +200,7 @@ HIDCallback(void *context, IOReturn result, void *sender, IOHIDValueRef value) || IOHIDElementGetUsage(elem) != kHIDUsage_KeyboardCapsLock) { return; } - int pressed = IOHIDValueGetIntegerValue(value); + CFIndex pressed = IOHIDValueGetIntegerValue(value); SDL_SendKeyboardKey(pressed ? SDL_PRESSED : SDL_RELEASED, SDL_SCANCODE_CAPSLOCK); }