mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Fix some warnings
This commit is contained in:
parent
f8cad6f565
commit
fb2d27931d
@ -50,7 +50,7 @@ static void input_state_set_last(unsigned port, unsigned device,
|
|||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
InputListElement *element = NULL;
|
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)
|
if (!input_state_list)
|
||||||
mylist_create(&input_state_list, 16,
|
mylist_create(&input_state_list, 16,
|
||||||
@ -93,7 +93,7 @@ static int16_t input_state_get_last(unsigned port,
|
|||||||
{
|
{
|
||||||
InputListElement *element =
|
InputListElement *element =
|
||||||
(InputListElement*)input_state_list->data[i];
|
(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) &&
|
if ( (element->port == port) &&
|
||||||
(element->device == device) &&
|
(element->device == device) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user