Skip to content

Commit

Permalink
Fix C89 build error
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin authored and sylverb committed May 23, 2023
1 parent cf3f6e8 commit b614a5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -2240,8 +2240,9 @@ static void check_variables(bool startup)

void add_powerpad_input(unsigned port, uint32 variant, uint32_t *ppdata)
{
unsigned k;
const uint32_t* map = (variant == RETRO_DEVICE_POWERPADA) ? powerpadamap : powerpadbmap;
for (unsigned k = 0 ; k < 12 ; k++)
for (k = 0 ; k < 12 ; k++)
if (input_cb(0, RETRO_DEVICE_KEYBOARD, 0, map[k]))
*ppdata |= (1 << k);
}
Expand Down

0 comments on commit b614a5d

Please sign in to comment.