summaryrefslogtreecommitdiff
path: root/src/getset.h
diff options
context:
space:
mode:
authortwinaphex2015-11-05 14:29:26 +0100
committertwinaphex2015-11-05 14:29:26 +0100
commita13a040c067999fa52c9e0ac8d08f6edcd6c792f (patch)
tree5bca649b1b28347e4ec3209fc7c3f3fa29076c23 /src/getset.h
parent8c7819e57646ad4fd44285b49e0eaa4c55b8e231 (diff)
downloadsnes9x2002-a13a040c067999fa52c9e0ac8d08f6edcd6c792f.tar.gz
snes9x2002-a13a040c067999fa52c9e0ac8d08f6edcd6c792f.tar.bz2
snes9x2002-a13a040c067999fa52c9e0ac8d08f6edcd6c792f.zip
Change some int casts to intptr_t
Diffstat (limited to 'src/getset.h')
-rw-r--r--src/getset.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/getset.h b/src/getset.h
index 44759e8..00387e1 100644
--- a/src/getset.h
+++ b/src/getset.h
@@ -81,7 +81,7 @@ INLINE uint8 S9xGetByte (uint32 Address)
return (*(GetAddress + (Address & 0xffff)));
}
- switch ((int) GetAddress)
+ switch ((intptr_t) GetAddress)
{
case CMemory::MAP_PPU:
#ifdef VAR_CYCLES
@@ -177,7 +177,7 @@ INLINE uint16 S9xGetWord (uint32 Address)
#endif
}
- switch ((int) GetAddress)
+ switch ((intptr_t) GetAddress)
{
case CMemory::MAP_PPU:
#ifdef VAR_CYCLES
@@ -290,7 +290,7 @@ INLINE void S9xSetByte (uint8 Byte, uint32 Address)
return;
}
- switch ((int) SetAddress)
+ switch ((intptr_t) SetAddress)
{
case CMemory::MAP_PPU:
#ifdef VAR_CYCLES
@@ -428,7 +428,7 @@ INLINE void S9xSetWord (uint16 Word, uint32 Address)
return;
}
- switch ((int) SetAddress)
+ switch ((intptr_t) SetAddress)
{
case CMemory::MAP_PPU:
#ifdef VAR_CYCLES
@@ -531,7 +531,7 @@ INLINE uint8 *GetBasePointer (uint32 Address)
if (GetAddress >= (uint8 *) CMemory::MAP_LAST)
return (GetAddress);
- switch ((int) GetAddress)
+ switch ((intptr_t) GetAddress)
{
case CMemory::MAP_PPU:
return (Memory.FillRAM - 0x2000);
@@ -570,7 +570,7 @@ INLINE uint8 *S9xGetMemPointer (uint32 Address)
if (GetAddress >= (uint8 *) CMemory::MAP_LAST)
return (GetAddress + (Address & 0xffff));
- switch ((int) GetAddress)
+ switch ((intptr_t) GetAddress)
{
case CMemory::MAP_PPU:
return (Memory.FillRAM - 0x2000 + (Address & 0xffff));
@@ -621,7 +621,7 @@ INLINE void S9xSetPCBase (uint32 Address)
return;
}
- switch ((int) GetAddress)
+ switch ((intptr_t) GetAddress)
{
case CMemory::MAP_PPU:
#ifdef VAR_CYCLES