Fix precedence order in newdc/hw/sh4/dyna/decoder.cpp. && has a higher precedence than ||. Considering the || left and right expressions test for similar things, I believe this was the intent.

This commit is contained in:
Lioncash 2013-12-23 09:27:02 -05:00
parent fda7844f73
commit ed8c25ef7c
1 changed files with 1 additions and 1 deletions

View File

@ -1171,7 +1171,7 @@ _end:
//Small-n-simple idle loop detector :p
if (state.info.has_readm && !state.info.has_writem && !state.info.has_fpu && blk->guest_opcodes<6)
{
if (blk->BlockType==BET_Cond_0 || blk->BlockType==BET_Cond_1 && blk->BranchBlock<=blk->addr)
if ((blk->BlockType==BET_Cond_0 || blk->BlockType==BET_Cond_1) && blk->BranchBlock<=blk->addr)
{
blk->guest_cycles*=3;
}