Fixed build warning
authorSam Lantinga <slouken@libsdl.org>
Wed, 12 Oct 2016 18:45:56 -0700
changeset 105190f444207f50a
parent 10518 fe8023cff95a
child 10520 8f4b7d58bb32
Fixed build warning
src/video/cocoa/SDL_cocoakeyboard.m
     1.1 --- a/src/video/cocoa/SDL_cocoakeyboard.m	Wed Oct 12 23:38:31 2016 +0200
     1.2 +++ b/src/video/cocoa/SDL_cocoakeyboard.m	Wed Oct 12 18:45:56 2016 -0700
     1.3 @@ -200,7 +200,7 @@
     1.4          || IOHIDElementGetUsage(elem) != kHIDUsage_KeyboardCapsLock) {
     1.5          return;
     1.6      }
     1.7 -    int pressed = IOHIDValueGetIntegerValue(value);
     1.8 +    CFIndex pressed = IOHIDValueGetIntegerValue(value);
     1.9      SDL_SendKeyboardKey(pressed ? SDL_PRESSED : SDL_RELEASED, SDL_SCANCODE_CAPSLOCK);
    1.10  }
    1.11