Commit 3a77b42de7057d2d0064691a7c3fc969c7788f1d

Sam Lantinga 2016-10-12T18:45:56

Fixed build warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/cocoa/SDL_cocoakeyboard.m b/src/video/cocoa/SDL_cocoakeyboard.m
index 5865bc3..2ad7bc3 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);
 }