From ecdb7fa83d0d27ad787ce63e14803aa2b8915253 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 27 Aug 2018 18:35:24 +0200 Subject: 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`. --- lib/char_to_key_code.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.3