summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/bebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/bebox.cpp')
-rw-r--r--src/mame/machine/bebox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/bebox.cpp b/src/mame/machine/bebox.cpp
index 2b7b219ce28..b34b2837b89 100644
--- a/src/mame/machine/bebox.cpp
+++ b/src/mame/machine/bebox.cpp
@@ -206,15 +206,15 @@ void bebox_state::bebox_crossproc_interrupts_w(offs_t offset, uint64_t data, uin
{ 0x08000000, 0, 0, 0/*PPC_INPUT_LINE_TLBISYNC*/ },
{ 0x04000000, 1, 0, 0/*PPC_INPUT_LINE_TLBISYNC*/ }
};
- int i, line;
uint32_t old_crossproc_interrupts = m_crossproc_interrupts;
bebox_mbreg32_w(&m_crossproc_interrupts, data, mem_mask);
- for (i = 0; i < ARRAY_LENGTH(crossproc_map); i++)
+ for (int i = 0; i < std::size(crossproc_map); i++)
{
if ((old_crossproc_interrupts ^ m_crossproc_interrupts) & crossproc_map[i].mask)
{
+ int line;
if (m_crossproc_interrupts & crossproc_map[i].mask)
line = crossproc_map[i].active_high ? ASSERT_LINE : CLEAR_LINE;
else
@@ -306,7 +306,7 @@ void bebox_state::bebox_set_irq_bit(unsigned int interrupt_bit, int val)
if (LOG_INTERRUPTS)
{
/* make sure that we don't shoot ourself in the foot */
- if ((interrupt_bit >= ARRAY_LENGTH(interrupt_names)) || !interrupt_names[interrupt_bit])
+ if ((interrupt_bit >= std::size(interrupt_names)) || !interrupt_names[interrupt_bit])
throw emu_fatalerror("bebox_state::bebox_set_irq_bit: Raising invalid interrupt");
logerror("bebox_set_irq_bit(): pc[0]=0x%08x pc[1]=0x%08x %s interrupt #%u (%s)\n",