diff options
Diffstat (limited to 'src/devices/machine/ds1302.cpp')
-rw-r--r-- | src/devices/machine/ds1302.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/ds1302.cpp b/src/devices/machine/ds1302.cpp index c254690cae0..c2cd23b560f 100644 --- a/src/devices/machine/ds1302.cpp +++ b/src/devices/machine/ds1302.cpp @@ -90,8 +90,8 @@ void ds1302_device::device_start() m_clock_timer = timer_alloc(); m_clock_timer->adjust(attotime::from_hz(clock() / 32768), 0, attotime::from_hz(clock() / 32768)); - for (int i = 0; i < 9; i++) - m_reg[i] = 0; + for (auto & elem : m_reg) + elem = 0; // state saving save_item(NAME(m_ce)); |