summaryrefslogtreecommitdiffstats
path: root/src/devices/video/mc6847.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/mc6847.cpp')
-rw-r--r--src/devices/video/mc6847.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/video/mc6847.cpp b/src/devices/video/mc6847.cpp
index e60da56ab2b..56f14f3e307 100644
--- a/src/devices/video/mc6847.cpp
+++ b/src/devices/video/mc6847.cpp
@@ -555,7 +555,7 @@ mc6847_base_device::mc6847_base_device(const machine_config &mconfig, device_typ
{
m_palette = s_palette;
- for (int i = 0; i < ARRAY_LENGTH(s_palette); i++)
+ for (int i = 0; i < std::size(s_palette); i++)
{
m_bw_palette[i] = black_and_white(s_palette[i]);
}
@@ -693,7 +693,7 @@ void mc6847_base_device::record_scanline_res(int scanline, int32_t start_pos, in
{
// update values
//assert(current_sample_count >= 0);
- assert(current_sample_count < ARRAY_LENGTH(m_data[scanline].m_mode));
+ assert(current_sample_count < std::size(m_data[scanline].m_mode));
update_value(&m_data[scanline].m_mode[current_sample_count], simplify_mode(data, m_mode));
update_value(&m_data[scanline].m_data[current_sample_count], data);
current_sample_count++;
@@ -948,7 +948,7 @@ mc6847_friend_device::character_map::character_map(const uint8_t *text_fontdata,
m_stripes[i] = ~(i / 12);
// loop through all modes
- for (mode = 0; mode < ARRAY_LENGTH(m_entries); mode++)
+ for (mode = 0; mode < std::size(m_entries); mode++)
{
const uint8_t *fontdata;
uint8_t character_mask;