mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 07:43:52 +00:00
Silence warnings
This commit is contained in:
parent
837cf84fc8
commit
3799a33efa
@ -63,7 +63,7 @@ static void input_state_set_last(unsigned port, unsigned device,
|
||||
if ( (element->port == port) &&
|
||||
(element->device == device) &&
|
||||
(element->index == index) &&
|
||||
(id >= 0 && id < MAX_ID)
|
||||
(id < MAX_ID)
|
||||
)
|
||||
{
|
||||
element->state[id] = value;
|
||||
@ -76,7 +76,7 @@ static void input_state_set_last(unsigned port, unsigned device,
|
||||
element->port = port;
|
||||
element->device = device;
|
||||
element->index = index;
|
||||
if (id >= 0 && id < MAX_ID)
|
||||
if (id < MAX_ID)
|
||||
element->state[id] = value;
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ static int16_t input_state_get_last(unsigned port,
|
||||
if ( (element->port == port) &&
|
||||
(element->device == device) &&
|
||||
(element->index == index) &&
|
||||
(id >= 0 && id < MAX_ID)
|
||||
(id < MAX_ID)
|
||||
)
|
||||
return element->state[id];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user