Fix clang error: constexpr if condition evaluates to 2, which cannot be narrowed to type 'bool' [-Wc++11-narrowing]

This commit is contained in:
AJR 2020-12-24 13:18:54 -05:00
parent 7ebdb0bd97
commit 6d9835065e

View File

@ -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);