summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/mc6843.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/mc6843.cpp')
-rw-r--r--src/devices/machine/mc6843.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/mc6843.cpp b/src/devices/machine/mc6843.cpp
index bec088ff829..04a7b6a0906 100644
--- a/src/devices/machine/mc6843.cpp
+++ b/src/devices/machine/mc6843.cpp
@@ -95,9 +95,9 @@ mc6843_device::mc6843_device(const machine_config &mconfig, const char *tag, dev
m_index_pulse(0),
m_timer_cont(nullptr)
{
- for (int i = 0; i < 128; i++)
+ for (auto & elem : m_data)
{
- m_data[i] = 0;
+ elem = 0;
}
}