fixed some clang warnings (nw)

This commit is contained in:
Oliver Stöneberg 2013-01-17 11:36:47 +00:00
parent 1c163868a5
commit 1c2b1ce65a
3 changed files with 5 additions and 5 deletions

View File

@ -277,7 +277,7 @@ static void lamp_extend_small(mpu4_state *state, int data)
lamp_ext_data = 0x1f - ((data & 0xf8) >> 3);//remove the mux lines from the data
if ((state->m_lamp_strobe_ext_persistence == 0))
if (state->m_lamp_strobe_ext_persistence == 0)
//One write to reset the drive lines, one with the data, one to clear the lines, so only the 2nd write does anything
//Once again, lamp persistences would take care of this, but we can't do that
{

View File

@ -657,7 +657,7 @@ static void mapper4_irq( device_t *device, int scanline, int vblank, int blanked
if (scanline < PPU_BOTTOM_VISIBLE_SCANLINE)
{
int priorCount = state->m_IRQ_count;
if ((state->m_IRQ_count == 0))
if (state->m_IRQ_count == 0)
{
state->m_IRQ_count = state->m_IRQ_count_latch;
}

View File

@ -427,7 +427,7 @@ static int check_sprite_left_goal_collision(running_machine &machine, int x1, in
for (x = x1; x < x1 + SPRITE_WIDTH; x++)
for (y = y1; y < y1 + SPRITE_HEIGHT; y++)
if ((state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1))
if (state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1)
{
pen_t pix = state->m_sprite_goal_collision_bitmap2->pix16(y, x);
@ -485,7 +485,7 @@ static int check_sprite_right_goal_collision(running_machine &machine, int x1, i
for (x = x1; x < x1 + SPRITE_WIDTH; x++)
for (y = y1; y < y1 + SPRITE_HEIGHT; y++)
if ((state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1))
if (state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1)
{
pen_t pix = state->m_sprite_goal_collision_bitmap2->pix16(y, x);
@ -525,7 +525,7 @@ static int check_sprite_border_collision(running_machine &machine, UINT8 x1, UIN
for (x = 0; x < SPRITE_WIDTH; x++)
for (y = 0; y < SPRITE_HEIGHT; y++)
if ((state->m_sprite_border_collision_bitmap->pix16(y, x) == 1))
if (state->m_sprite_border_collision_bitmap->pix16(y, x) == 1)
{
if (((UINT8)(x1 + x) == LEFT_BORDER) ||
((UINT8)(x1 + x) == RIGHT_BORDER))