aboutsummaryrefslogtreecommitdiff
path: root/source/sa1.cpp
diff options
context:
space:
mode:
authoraliaspider2014-10-28 03:13:05 +0100
committeraliaspider2014-10-28 03:13:05 +0100
commit5a96997f186b2cff1a24ed5572430fe0f031e8d3 (patch)
treed61c43d74818018e17d8142025b42d3139559395 /source/sa1.cpp
parentf3dab3957cf020af5a10ea64d8f77692d10be973 (diff)
downloadsnes9x2005-5a96997f186b2cff1a24ed5572430fe0f031e8d3.tar.gz
snes9x2005-5a96997f186b2cff1a24ed5572430fe0f031e8d3.tar.bz2
snes9x2005-5a96997f186b2cff1a24ed5572430fe0f031e8d3.zip
initial libretro port.
Diffstat (limited to 'source/sa1.cpp')
-rw-r--r--source/sa1.cpp6
1 files changed, 3 insertions, 3 deletions
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;