firewave's patch fixes more !-operator warnings

This commit is contained in:
Michaël Banaan Ananas 2012-07-28 07:53:23 +00:00
parent e2113c652a
commit 50e2290f15
5 changed files with 13 additions and 13 deletions

View File

@ -885,7 +885,7 @@ inline bool z8536_device::counter_gated(device_timer_id id)
inline void z8536_device::count(device_timer_id id)
{
if (!counter_gated(id)) return;
if (!m_register[COUNTER_TIMER_1_COMMAND_AND_STATUS + id] & CTCS_CIP) return;
if (!(m_register[COUNTER_TIMER_1_COMMAND_AND_STATUS + id] & CTCS_CIP)) return;
// count down
m_counter[id]--;

View File

@ -91,7 +91,7 @@ UINT32 bcd_2_dec(UINT32 a)
int gregorian_is_leap_year(int year)
{
return !(year % 100 ? year % 4 : year % 400);
return !((year % 100) ? (year % 4) : (year % 400));
}

View File

@ -435,10 +435,10 @@ WRITE8_MEMBER(multfish_state::rollfr_hopper_w)
m_hopper_motor = data & 0x10;
coin_lockout_w(machine(), 0, !data & 0x01);
coin_lockout_w(machine(), 1, !data & 0x01);
coin_lockout_w(machine(), 2, !data & 0x01);
coin_lockout_w(machine(), 3, !data & 0x01);
coin_lockout_w(machine(), 0,~data & 0x01);
coin_lockout_w(machine(), 1,~data & 0x01);
coin_lockout_w(machine(), 2,~data & 0x01);
coin_lockout_w(machine(), 3,~data & 0x01);
coin_lockout_w(machine(), 4, data & 0x04);
coin_lockout_w(machine(), 5, data & 0x04);
coin_lockout_w(machine(), 6, data & 0x04);

View File

@ -621,7 +621,7 @@ READ8_MEMBER(peplus_state::peplus_input_bank_a_r)
if (curr_cycles - m_last_door > door_wait) {
if ((ioport("DOOR")->read_safe(0xff) & 0x01) == 0x01) {
m_door_open = (!m_door_open & 0x01);
m_door_open = (m_door_open ^ 0x01) & 0x01;
} else {
m_door_open = 1;
}

View File

@ -383,7 +383,7 @@ SCREEN_UPDATE_IND16( goldstar )
bitmap.fill(get_black_pen(screen.machine()), cliprect);
if (!state->m_cm_enable_reg &0x01)
if (!(state->m_cm_enable_reg &0x01))
return 0;
if (state->m_cm_enable_reg &0x08)
@ -434,7 +434,7 @@ SCREEN_UPDATE_IND16( bingowng )
bitmap.fill(get_black_pen(screen.machine()), cliprect);
if (!state->m_cm_enable_reg &0x01)
if (!(state->m_cm_enable_reg &0x01))
return 0;
if (state->m_cm_enable_reg &0x08)
@ -477,7 +477,7 @@ SCREEN_UPDATE_IND16( magical )
bitmap.fill(get_black_pen(screen.machine()), cliprect);
if (!state->m_cm_enable_reg &0x01)
if (!(state->m_cm_enable_reg &0x01))
return 0;
if (state->m_cm_enable_reg &0x08)
@ -536,7 +536,7 @@ SCREEN_UPDATE_IND16( unkch )
bitmap.fill(get_black_pen(screen.machine()), cliprect);
if (!state->m_cm_enable_reg &0x01)
if (!(state->m_cm_enable_reg &0x01))
return 0;
if (state->m_cm_enable_reg &0x08)
@ -590,7 +590,7 @@ SCREEN_UPDATE_IND16( cmast91 )
bitmap.fill(get_black_pen(screen.machine()), cliprect);
if (!state->m_cm_enable_reg &0x01)
if (!(state->m_cm_enable_reg &0x01))
return 0;
if (state->m_cm_enable_reg &0x08)
@ -626,7 +626,7 @@ SCREEN_UPDATE_IND16( amcoe1a )
bitmap.fill(get_black_pen(screen.machine()), cliprect);
if (!state->m_cm_enable_reg &0x01)
if (!(state->m_cm_enable_reg &0x01))
return 0;
if (state->m_cm_enable_reg &0x08)