From 5d47b8ad7e805212b250c86e8e18758bc3662e54 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Wed, 6 Mar 2013 19:52:28 +0100 Subject: [PATCH] Fixed signedness. --- NJInputHat.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NJInputHat.m b/NJInputHat.m index 409ae07..e0e127f 100644 --- a/NJInputHat.m +++ b/NJInputHat.m @@ -89,7 +89,7 @@ static BOOL active_fourway[20] = { size++; } BOOL *activechildren = (size == 8) ? active_eightway : active_fourway; - for (int i = 0; i < 4; i++) { + for (unsigned i = 0; i < 4; i++) { BOOL active = activechildren[parsed * 4 + i]; [self.children[i] setActive:active]; [self.children[i] setMagnitude:active]; -- 2.20.1