From 5a96997f186b2cff1a24ed5572430fe0f031e8d3 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 28 Oct 2014 03:13:05 +0100 Subject: initial libretro port. --- source/sa1.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/sa1.cpp') diff --git a/source/sa1.cpp b/source/sa1.cpp index addeed7..f67a9d6 100644 --- a/source/sa1.cpp +++ b/source/sa1.cpp @@ -201,7 +201,7 @@ uint8 S9xSA1GetByte (uint32 address) if (GetAddress >= (uint8 *) CMemory::MAP_LAST) return (*(GetAddress + (address & 0xffff))); - switch ((int) GetAddress) + switch ((intptr_t) GetAddress) { case CMemory::MAP_PPU: return (S9xGetSA1 (address & 0xffff)); @@ -248,7 +248,7 @@ void S9xSA1SetByte (uint8 byte, uint32 address) return; } - switch ((int) Setaddress) + switch ((intptr_t) Setaddress) { case CMemory::MAP_PPU: S9xSetSA1 (byte, address & 0xffff); @@ -310,7 +310,7 @@ void S9xSA1SetPCBase (uint32 address) return; } - switch ((int) GetAddress) + switch ((intptr_t) GetAddress) { case CMemory::MAP_PPU: SA1.PCBase = Memory.FillRAM - 0x2000; -- cgit v1.2.3