diff options
Diffstat (limited to 'src/decomp')
-rw-r--r-- | src/decomp/instr/switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decomp/instr/switch.c b/src/decomp/instr/switch.c index 4b1662b..b475eae 100644 --- a/src/decomp/instr/switch.c +++ b/src/decomp/instr/switch.c @@ -179,7 +179,7 @@ static bool g_switch_instruction_visit(GSwitchInstruction *instr, dec_instr_visi size_t i; /* Boucle de parcours */ result = true; - return true; + for (i = 0; i < instr->cases_count && result; i++) result = _g_dec_instruction_visit(instr->cases[i].instrs, G_DEC_INSTRUCTION(instr), callback, flags, data); @@ -213,7 +213,7 @@ static bool g_switch_instruction_replace(GSwitchInstruction *instr, GDecInstruct size_t i; /* Boucle de parcours */ result = false; - return false; + for (i = 0; i < instr->cases_count; i++) result |= g_dec_instruction_replace(instr->cases[i].instrs, old, new); |