core/hw/sh5/dyna/decoder.cpp: place parentheses around && expression
This compiler warning has been fixed: ../../core/hw/sh4/dyna/decoder.cpp:1181:66: warning: '&&' within '||' [-Wlogical-op-parentheses] ...|| blk->BlockType==BET_Cond_1 && blk->BranchBlock<=blk->addr) ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../core/hw/sh4/dyna/decoder.cpp:1181:66: note: place parentheses around the '&&' expression to silence this warning ...|| blk->BlockType==BET_Cond_1 && blk->BranchBlock<=blk->addr) ^ ( )
This commit is contained in:
parent
604dcce531
commit
1d0ef81a43
|
@ -1178,7 +1178,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue