From 5e92df12cd46f3a06d984a39adb0519e5863eec6 Mon Sep 17 00:00:00 2001 From: arbee Date: Thu, 2 May 2019 21:52:19 -0400 Subject: [PATCH] scnxx562: bug found by GCC 9 (nw) --- src/devices/machine/scnxx562.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/machine/scnxx562.cpp b/src/devices/machine/scnxx562.cpp index c3bfbfacc5d..4e82cfa1aa8 100644 --- a/src/devices/machine/scnxx562.cpp +++ b/src/devices/machine/scnxx562.cpp @@ -732,7 +732,7 @@ void duscc_channel::device_timer(emu_timer &timer, device_timer_id id, int param m_ictsr |= REG_ICTSR_ZERO_DET; // set zero detection bit // Generate interrupt? - if ( ( (m_ctcr & REG_CTCR_ZERO_DET_INT) == 1 ) && + if ( ( (m_ctcr & REG_CTCR_ZERO_DET_INT) == REG_CTCR_ZERO_DET_INT ) && ( (m_uart->m_icr & (m_index == duscc_device::CHANNEL_A ? duscc_device::REG_ICR_CHA : duscc_device::REG_ICR_CHB) ) != 0) ) { LOG("Zero Detect Interrupt pending\n");