keymap: Remove incorrect cast

This commit is contained in:
ZyX 2017-10-16 01:00:58 +03:00
parent 15043e93b6
commit a535d68380

View File

@ -696,11 +696,14 @@ int find_special_key_in_table(int c)
{ {
int i; int i;
for (i = 0; key_names_table[i].name != NULL; i++) for (i = 0; key_names_table[i].name != NULL; i++) {
if (c == (uint8_t)key_names_table[i].key) if (c == key_names_table[i].key) {
break; break;
if (key_names_table[i].name == NULL) }
}
if (key_names_table[i].name == NULL) {
i = -1; i = -1;
}
return i; return i;
} }