summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2013-02-10 15:07:37 +0000
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2013-02-10 15:07:37 +0000
commit6852552362ec45b01f79f8992de252422cee6da5 (patch) (github)
tree034c386c9caf1c9e87e540714bbf2d200134a48f
parent54c8c3eef0ab5efae4330c8343d0bc587cd6cbfe (diff)
downloadmame-6852552362ec45b01f79f8992de252422cee6da5.tar.bz2
mame-6852552362ec45b01f79f8992de252422cee6da5.zip
memory: Add missing 32->64 bits conversion when building the invsubmask [Oliver Stöneberg]
-rw-r--r--src/emu/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/memory.c b/src/emu/memory.c
index 9ec532ad8d3..63001ec757c 100644
--- a/src/emu/memory.c
+++ b/src/emu/memory.c
@@ -4398,7 +4398,7 @@ void handler_entry::configure_subunits(UINT64 handlermask, int handlerbits, int
// compute the inverse mask
m_invsubmask = 0;
for (int i = 0; i < m_subunits; i++)
- m_invsubmask |= m_subunit_infos[i].m_mask << m_subunit_infos[i].m_shift;
+ m_invsubmask |= UINT64(m_subunit_infos[i].m_mask) << m_subunit_infos[i].m_shift;
m_invsubmask = ~m_invsubmask;
}