From b83b6a0f33727dc26c129d0e43ebb6d95f39ba5b Mon Sep 17 00:00:00 2001 From: Scott Stone Date: Tue, 7 Oct 2014 06:22:33 +0000 Subject: Fix compile on MSVC 2012 from Peter Ferrie (nw) --- src/emu/bus/chanf/rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/emu/bus/chanf/rom.c b/src/emu/bus/chanf/rom.c index e9add893685..7abac534edb 100644 --- a/src/emu/bus/chanf/rom.c +++ b/src/emu/bus/chanf/rom.c @@ -171,7 +171,7 @@ void chanf_rom_device::common_write_2102(UINT32 offset, UINT8 data) m_latch[1] = data; // all bits but 2,3 come from this write, but they are shuffled // notice that data is 8bits, so when swapping bit8 & bit9 are always 0! - m_addr_latch = (m_addr_latch & 0x0c) | (BITSWAP16(data, 15, 14, 13, 12, 11, 10, 7, 6, 5, 3, 2, 1, 9, 8, 4, 0)); + m_addr_latch = (m_addr_latch & 0x0c) | (BITSWAP16((UINT16) data, 15, 14, 13, 12, 11, 10, 7, 6, 5, 3, 2, 1, 9, 8, 4, 0)); } } -- cgit v1.2.3-70-g09d2