krnl386.exe16: Add parentheses to clarify the precedence between '&' and '&&'.
This commit is contained in:
parent
8f8760a1a5
commit
f01888da59
|
@ -1013,17 +1013,17 @@ void DOSVM_outport( int port, int size, DWORD value )
|
||||||
{
|
{
|
||||||
if ( !(value & 0x20) )
|
if ( !(value & 0x20) )
|
||||||
{
|
{
|
||||||
if (value & 0x02 && !(tmr_8253[0].flags & TMR_LATCHED))
|
if ((value & 0x02) && !(tmr_8253[0].flags & TMR_LATCHED))
|
||||||
{
|
{
|
||||||
tmr_8253[0].flags |= TMR_LATCHED;
|
tmr_8253[0].flags |= TMR_LATCHED;
|
||||||
tmr_8253[0].latch = get_timer_val(0);
|
tmr_8253[0].latch = get_timer_val(0);
|
||||||
}
|
}
|
||||||
if (value & 0x04 && !(tmr_8253[1].flags & TMR_LATCHED))
|
if ((value & 0x04) && !(tmr_8253[1].flags & TMR_LATCHED))
|
||||||
{
|
{
|
||||||
tmr_8253[1].flags |= TMR_LATCHED;
|
tmr_8253[1].flags |= TMR_LATCHED;
|
||||||
tmr_8253[1].latch = get_timer_val(1);
|
tmr_8253[1].latch = get_timer_val(1);
|
||||||
}
|
}
|
||||||
if (value & 0x08 && !(tmr_8253[2].flags & TMR_LATCHED))
|
if ((value & 0x08) && !(tmr_8253[2].flags & TMR_LATCHED))
|
||||||
{
|
{
|
||||||
tmr_8253[2].flags |= TMR_LATCHED;
|
tmr_8253[2].flags |= TMR_LATCHED;
|
||||||
tmr_8253[2].latch = get_timer_val(2);
|
tmr_8253[2].latch = get_timer_val(2);
|
||||||
|
|
Loading…
Reference in New Issue