diff options
Diffstat (limited to 'src/devices/bus/neogeo/sbp_prot.cpp')
-rw-r--r-- | src/devices/bus/neogeo/sbp_prot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/neogeo/sbp_prot.cpp b/src/devices/bus/neogeo/sbp_prot.cpp index b913eba75d9..d890f4d2be1 100644 --- a/src/devices/bus/neogeo/sbp_prot.cpp +++ b/src/devices/bus/neogeo/sbp_prot.cpp @@ -29,7 +29,7 @@ void sbp_prot_device::device_reset() READ16_MEMBER( sbp_prot_device::sbp_lowerrom_r ) { - UINT16* rom = (UINT16*)m_mainrom; + UINT16* rom = reinterpret_cast<UINT16*>(m_mainrom); UINT16 origdata = rom[(offset+(0x200/2))]; UINT16 data = BITSWAP16(origdata, 11,10,9,8,15,14,13,12,3,2,1,0,7,6,5,4); int realoffset = 0x200+(offset*2); @@ -78,7 +78,7 @@ void sbp_prot_device::sbp_install_protection(cpu_device* maincpu, UINT8* cpurom, /* the game code clears the text overlay used ingame immediately after writing it.. why? protection? sloppy code that the hw ignores? imperfect emulation? */ { - UINT16* rom = (UINT16*)cpurom; + UINT16* rom = reinterpret_cast<UINT16*>(cpurom); rom[0x2a6f8 / 2] = 0x4e71; rom[0x2a6fa / 2] = 0x4e71; |