From 68139508715a0375e657add4197582271ef446ec Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 20 Jul 2019 12:03:01 +1000 Subject: [PATCH] (nw) fixed the build. The compiler complained about the 2nd usage but not the first. *shrug* --- src/devices/machine/i8155.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/machine/i8155.cpp b/src/devices/machine/i8155.cpp index 761bcef000d..c8cb11f0216 100644 --- a/src/devices/machine/i8155.cpp +++ b/src/devices/machine/i8155.cpp @@ -458,9 +458,9 @@ void i8155_device::write_command(uint8_t data) LOGMASKED(LOG_PORT, "Port A Interrupt: %s\n", (data & COMMAND_IEA) ? "enabled" : "disabled"); LOGMASKED(LOG_PORT, "Port B Interrupt: %s\n", (data & COMMAND_IEB) ? "enabled" : "disabled"); - if ((data & COMMAND_PA) && (!old_command & COMMAND_PA)) + if ((data & COMMAND_PA) && (~old_command & COMMAND_PA)) m_out_pa_cb((offs_t)0, m_output[PORT_A]); - if ((data & COMMAND_PB) && (!old_command & COMMAND_PB)) + if ((data & COMMAND_PB) && (~old_command & COMMAND_PB)) m_out_pb_cb((offs_t)0, m_output[PORT_B]); switch (data & COMMAND_PC_MASK)