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/by35.cpp | |
parent | c0a7f9716930d3931e05756609e6986cdb7cd3bb (diff) |
Don't rely on macro expansion to supply parentheses around condition for if statement
Diffstat (limited to 'src/mame/drivers/by35.cpp')
-rw-r--r-- | src/mame/drivers/by35.cpp | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/mame/drivers/by35.cpp b/src/mame/drivers/by35.cpp index 2bbd3366cbf..0682bad0d11 100644 --- a/src/mame/drivers/by35.cpp +++ b/src/mame/drivers/by35.cpp @@ -677,28 +677,21 @@ WRITE8_MEMBER( by35_state::u11_a_w ) m_digit = 0; - if BIT(data, 7) + if (BIT(data, 7)) m_digit = 1; - else - if BIT(data, 6) + else if (BIT(data, 6)) m_digit = 2; - else - if BIT(data, 5) + else if (BIT(data, 5)) m_digit = 3; - else - if BIT(data, 4) + else if (BIT(data, 4)) m_digit = 4; - else - if BIT(data, 3) + else if (BIT(data, 3)) m_digit = 5; - else - if BIT(data, 2) + else if (BIT(data, 2)) m_digit = 6; - else - if (BIT(data, 2) && BIT(data, 3)) // Aftermarket 7th digit strobe for 6 digit games + else if (BIT(data, 2) && BIT(data, 3)) // Aftermarket 7th digit strobe for 6 digit games m_digit = 7; - else - if (BIT(data, 1) && m_7d) + else if (BIT(data, 1) && m_7d) m_digit = 7; if ((m_u10_ca2==0) && m_digit) |