Fix some warnings

This commit is contained in:
twinaphex 2018-06-20 16:21:53 +02:00
parent f8cad6f565
commit fb2d27931d

View File

@ -50,7 +50,7 @@ static void input_state_set_last(unsigned port, unsigned device,
{
unsigned i;
InputListElement *element = NULL;
const int MAX_ID = sizeof(element->state) / sizeof(int16_t);
const unsigned MAX_ID = sizeof(element->state) / sizeof(int16_t);
if (!input_state_list)
mylist_create(&input_state_list, 16,
@ -93,7 +93,7 @@ static int16_t input_state_get_last(unsigned port,
{
InputListElement *element =
(InputListElement*)input_state_list->data[i];
const int MAX_ID = sizeof(element->state) / sizeof(int16_t);
const unsigned MAX_ID = sizeof(element->state) / sizeof(int16_t);
if ( (element->port == port) &&
(element->device == device) &&