diff options
| author | Jonathan Rahn | 2014-01-06 13:59:26 +0100 |
|---|---|---|
| committer | Jonathan Rahn | 2014-01-06 13:59:26 +0100 |
| commit | f1228d6594f59b240fd41477f55289930d469cac (patch) | |
| tree | 16450f242488282eec8789c2d54fe31f13d2e168 /MASShortcut.m | |
| parent | 9edbf670f506602ea3b7cba0cfa38f056ac32813 (diff) | |
| download | MASShortcut-f1228d6594f59b240fd41477f55289930d469cac.tar.bz2 | |
Silence compiler warning "No previous prototype for function..." and added an explicit typecast, update README with a hint to the view's height
Diffstat (limited to 'MASShortcut.m')
| -rw-r--r-- | MASShortcut.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MASShortcut.m b/MASShortcut.m index f03be0e..4e9888d 100644 --- a/MASShortcut.m +++ b/MASShortcut.m @@ -189,7 +189,7 @@ NSString *const MASShortcutModifierFlags = @"ModifierFlags"; UniCharCount length = 0; UniChar chars[256] = { 0 }; UInt32 deadKeyState = 0; - error = UCKeyTranslate(layoutData, self.keyCode, kUCKeyActionDisplay, 0, // No modifiers + error = UCKeyTranslate(layoutData, (UInt16)self.keyCode, kUCKeyActionDisplay, 0, // No modifiers LMGetKbdType(), kUCKeyTranslateNoDeadKeysMask, &deadKeyState, sizeof(chars) / sizeof(UniChar), &length, chars); keystroke = ((error == noErr) && length ? [NSString stringWithCharacters:chars length:length] : @""); |
