scnxx562: bug found by GCC 9 (nw)

This commit is contained in:
arbee 2019-05-02 21:52:19 -04:00
parent e55ff6a045
commit 5e92df12cd

View File

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