DSP: Fix integer promotion spill

This commit is contained in:
EmptyChaos
2016-04-08 02:08:17 +00:00
parent 94098a50c2
commit 80ff82b81a
3 changed files with 7 additions and 7 deletions

View File

@ -76,7 +76,7 @@ void Step()
u16 opc = dsp_fetch_code();
ExecuteInstruction(UDSPInstruction(opc));
if (DSPAnalyzer::code_flags[g_dsp.pc - 1] & DSPAnalyzer::CODE_LOOP_END)
if (DSPAnalyzer::code_flags[static_cast<u16>(g_dsp.pc - 1u)] & DSPAnalyzer::CODE_LOOP_END)
HandleLoop();
}