aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTeddy Wing2018-08-27 18:35:24 +0200
committerTeddy Wing2018-08-27 18:35:24 +0200
commitecdb7fa83d0d27ad787ce63e14803aa2b8915253 (patch)
tree0467700565c902360cca6a33ff497fce88c7eab9 /lib
parentc48f76ba6581bceade85071c1d8e34a72670908d (diff)
downloadDomeKey-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`.
Diffstat (limited to 'lib')
-rw-r--r--lib/char_to_key_code.m2
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);