summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/z80ctc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/z80ctc.cpp')
-rw-r--r--src/devices/machine/z80ctc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/z80ctc.cpp b/src/devices/machine/z80ctc.cpp
index 23487d5120c..13c4844c9e3 100644
--- a/src/devices/machine/z80ctc.cpp
+++ b/src/devices/machine/z80ctc.cpp
@@ -183,9 +183,9 @@ int z80ctc_device::z80daisy_irq_state()
// loop over all channels
int state = 0;
- for (int ch = 0; ch < 4; ch++)
+ for (auto & channel : m_channel)
{
- ctc_channel &channel = m_channel[ch];
+
// if we're servicing a request, don't indicate more interrupts
if (channel.m_int_state & Z80_DAISY_IEO)