Fix for loop initial declaration errors

This commit is contained in:
twinaphex 2022-01-19 19:00:57 +01:00
parent 4eac8e30a8
commit e554360dd3
1 changed files with 4 additions and 2 deletions

View File

@ -2652,7 +2652,8 @@ u8 function_cc *block_lookup_address_dual(u32 pc)
u8 function_cc *block_lookup_address_arm(u32 pc)
{
for (unsigned i = 0; i < 4; i++) {
unsigned i;
for (i = 0; i < 4; i++) {
u8 *ret = block_lookup_translate_arm(pc);
if (ret) {
translate_icache_sync();
@ -2667,7 +2668,8 @@ u8 function_cc *block_lookup_address_arm(u32 pc)
u8 function_cc *block_lookup_address_thumb(u32 pc)
{
for (unsigned i = 0; i < 4; i++) {
unsigned i;
for (i = 0; i < 4; i++) {
u8 *ret = block_lookup_translate_thumb(pc);
if (ret) {
translate_icache_sync();