Prevent these two runtime errors with ASAN

This commit is contained in:
twinaphex 2019-08-28 07:37:49 +02:00
parent 90ba789a9f
commit 88dabc7260

View File

@ -13104,7 +13104,7 @@ static void input_menu_keys_pressed(input_bits_t *p_new_state,
}
{
int16_t ret[MAX_USERS];
int32_t ret[MAX_USERS];
/* Check the libretro input first */
for (port = 0; port < port_max; port++)
{
@ -13288,7 +13288,7 @@ static void input_keys_pressed(input_bits_t *p_new_state)
/* Check the libretro input first */
{
int16_t ret = current_input->input_state(current_input_data,
int32_t ret = current_input->input_state(current_input_data,
joypad_info, &binds, 0, RETRO_DEVICE_JOYPAD, 0,
RETRO_DEVICE_ID_JOYPAD_MASK);
for (i = 0; i < RARCH_FIRST_META_KEY; i++)