Fixed signedness.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 6 Mar 2013 18:52:28 +0000 (19:52 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 6 Mar 2013 18:52:28 +0000 (19:52 +0100)
NJInputHat.m

index 409ae0778832d4d12c4d3931f5fad7614aacf3ff..e0e127fec646b6d4b15e51b144cede49ede7c0b2 100644 (file)
@@ -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];