From 479f4b87b8cece081c86adbf3deaced3d04021b2 Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 10 Aug 2023 10:42:26 -0400 Subject: sgi/ctl1.cpp: Fix operator precedence mistake --- src/mame/sgi/ctl1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/sgi/ctl1.cpp b/src/mame/sgi/ctl1.cpp index 82277833775..79503c5e45b 100644 --- a/src/mame/sgi/ctl1.cpp +++ b/src/mame/sgi/ctl1.cpp @@ -142,7 +142,7 @@ void sgi_ctl1_device::cpucfg_w(u16 data) if ((data & CPUCFG_BAD) && !m_parity && m_memcfg.has_value()) { - unsigned const ram_size = ((m_memcfg.value() & MEMCFG_MEMSIZE) + 1) * (m_memcfg.value() & MEMCFG_4MRAM) ? 16 : 4; + unsigned const ram_size = ((m_memcfg.value() & MEMCFG_MEMSIZE) + 1) * ((m_memcfg.value() & MEMCFG_4MRAM) ? 16 : 4); LOGMASKED(LOG_PARITY, "bad parity activated %dM\n", ram_size); -- cgit v1.2.3