diff options
author | Vas Crabb <vas@vastheman.com> | 2016-08-16 16:13:37 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2016-08-16 17:25:19 +1000 |
commit | 9cda2a26f4d3a3e3e21b3f15c76f32cd6cea1a81 (patch) | |
tree | 06aaee84c64254188d4437447a6a89a1524a60c2 /src/mame/drivers/atari_s2.cpp | |
parent | c0a7f9716930d3931e05756609e6986cdb7cd3bb (diff) |
Don't rely on macro expansion to supply parentheses around condition for if statement
Diffstat (limited to 'src/mame/drivers/atari_s2.cpp')
-rw-r--r-- | src/mame/drivers/atari_s2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/atari_s2.cpp b/src/mame/drivers/atari_s2.cpp index bafac12ebfb..28504fa74f5 100644 --- a/src/mame/drivers/atari_s2.cpp +++ b/src/mame/drivers/atari_s2.cpp @@ -390,10 +390,10 @@ TIMER_DEVICE_CALLBACK_MEMBER( atari_s2_state::timer_s ) m_timer_s[1] = m_sound1; // set to preset value m_timer_s[2]++; offs_t offs = (m_timer_s[2] & 31) | ((m_sound0 & 15) << 5); - if BIT(m_sound0, 6) + if (BIT(m_sound0, 6)) m_dac->write_unsigned8(m_p_prom[offs]<< 4); // noise - if BIT(m_sound0, 7) + if (BIT(m_sound0, 7)) { bool ab0 = BIT(m_timer_s[3], 0) ^ BIT(m_timer_s[4], 6); bool ab1 = !BIT(m_timer_s[3], 1); @@ -418,7 +418,7 @@ WRITE8_MEMBER( atari_s2_state::sound0_w ) { m_sound0 = data; offs_t offs = (m_timer_s[2] & 31) | ((m_sound0 & 15) << 5); - if BIT(m_sound0, 6) + if (BIT(m_sound0, 6)) m_dac->write_unsigned8(m_p_prom[offs]<< 4); } |