diff options
author | Teddy Wing | 2018-08-27 18:35:24 +0200 |
---|---|---|
committer | Teddy Wing | 2018-08-27 18:35:24 +0200 |
commit | ecdb7fa83d0d27ad787ce63e14803aa2b8915253 (patch) | |
tree | 0467700565c902360cca6a33ff497fce88c7eab9 | |
parent | c48f76ba6581bceade85071c1d8e34a72670908d (diff) | |
download | DomeKey-ecdb7fa83d0d27ad787ce63e14803aa2b8915253.tar.bz2 |
char_to_key_code.m: Change loop index type to `int`
Fix the following warning from Xcode's analyzer:
char_to_key_code.m:62:49: Implicit conversion loses integer
precision: 'size_t' (aka 'unsigned long') to 'int'
Since `NSNumber` `numberWithInt` takes an `int`, change `i` to `int`.
-rw-r--r-- | lib/char_to_key_code.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/char_to_key_code.m b/lib/char_to_key_code.m index d250648..210536d 100644 --- a/lib/char_to_key_code.m +++ b/lib/char_to_key_code.m @@ -53,7 +53,7 @@ NSNumber* charToKeyCode(const char c) dict = [NSMutableDictionary dictionary]; // For every keyCode - size_t i; + int i; for (i = 0; i < 128; ++i) { NSString* str = keyCodeToString((CGKeyCode)i); |