summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-12-24 13:18:54 -0500
committer AJR <ajrhacker@users.noreply.github.com>2020-12-24 13:18:54 -0500
commit6d9835065e8c5acd072b6515952e9ecb7c8b650e (patch)
treee451e95469110d7ff86826f975417804602a887a
parent7ebdb0bd9793158ea00de6962825e34fe93421ce (diff)
Fix clang error: constexpr if condition evaluates to 2, which cannot be narrowed to type 'bool' [-Wc++11-narrowing]
-rw-r--r--src/mame/drivers/odyssey2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/odyssey2.cpp b/src/mame/drivers/odyssey2.cpp
index e79ba927676..59f294395cc 100644
--- a/src/mame/drivers/odyssey2.cpp
+++ b/src/mame/drivers/odyssey2.cpp
@@ -465,7 +465,7 @@ void vpp_state::i8243_port_w(u8 data)
m_screen->update_now();
- if constexpr (P & 2)
+ if constexpr ((P & 2) != 0)
m_mix_i8244 = (m_mix_i8244 & ~mask) | (data & mask);
else
m_mix_ef934x = (m_mix_ef934x & ~mask) | (data & mask);