Silence warnings about operator priority.

This commit is contained in:
Brandon Wright 2018-04-11 12:44:21 -05:00
parent 2cbb3f6cf7
commit 312075f280
1 changed files with 4 additions and 4 deletions

View File

@ -295,17 +295,17 @@ static inline void S9xCheckInterrupts (void)
if (PPU.HTimerEnabled)
{
int32 htimepos = PPU.HTimerPosition;
if (CPU.Cycles >= Timings.H_Max & htimepos < CPU.PrevCycles)
if ((CPU.Cycles >= Timings.H_Max) & (htimepos < CPU.PrevCycles))
htimepos += Timings.H_Max;
if (CPU.PrevCycles >= htimepos | CPU.Cycles < htimepos)
if ((CPU.PrevCycles >= htimepos) | (CPU.Cycles < htimepos))
thisIRQ = FALSE;
}
if (PPU.VTimerEnabled)
{
int32 vcounter = CPU.V_Counter;
if (CPU.Cycles >= Timings.H_Max & (!PPU.HTimerEnabled | PPU.HTimerPosition < CPU.PrevCycles)) {
if ((CPU.Cycles >= Timings.H_Max) & ((!PPU.HTimerEnabled) | (PPU.HTimerPosition < CPU.PrevCycles))) {
vcounter++;
if(vcounter >= Timings.V_Max)
vcounter = 0;
@ -315,7 +315,7 @@ static inline void S9xCheckInterrupts (void)
thisIRQ = FALSE;
}
if (!CPU.IRQLastState & thisIRQ)
if ((!CPU.IRQLastState) & thisIRQ)
{
#ifdef DEBUGGER
S9xTraceFormattedMessage("--- /IRQ High->Low prev HC:%04d curr HC:%04d HTimer:%d Pos:%04d VTimer:%d Pos:%03d",