aboutsummaryrefslogtreecommitdiff
path: root/source/apudebug.cpp
diff options
context:
space:
mode:
authoraliaspider2014-10-28 05:39:03 +0100
committeraliaspider2014-10-28 05:39:03 +0100
commit76fef9625dd83399979a653b74f377f730725a70 (patch)
treef043e3774bc36acd7af98a2e8c3beb4a6fcbbf88 /source/apudebug.cpp
parent5a96997f186b2cff1a24ed5572430fe0f031e8d3 (diff)
downloadsnes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.gz
snes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.bz2
snes9x2005-76fef9625dd83399979a653b74f377f730725a70.zip
64-bit safer
Diffstat (limited to 'source/apudebug.cpp')
-rw-r--r--source/apudebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/apudebug.cpp b/source/apudebug.cpp
index a016977..9fa2668 100644
--- a/source/apudebug.cpp
+++ b/source/apudebug.cpp
@@ -326,7 +326,7 @@ int S9xAPUOPrint (char *buffer, uint16 Address)
break;
case DPREL:
sprintf (mnem, S9xMnemonics [*p], *(p + 1),
- (int) (p + 3 - IAPU.RAM) + (signed char) *(p + 2));
+ (intptr_t) (p + 3 - IAPU.RAM) + (signed char) *(p + 2));
break;
case ABSBIT:
sprintf (mnem, S9xMnemonics [*p], (*(p + 1) + (*(p + 2) << 8)) & 0x1fff,
@@ -334,7 +334,7 @@ int S9xAPUOPrint (char *buffer, uint16 Address)
break;
case REL:
sprintf (mnem, S9xMnemonics [*p],
- (int) (p + 2 - IAPU.RAM) + (signed char) *(p + 1));
+ (intptr_t) (p + 2 - IAPU.RAM) + (signed char) *(p + 1));
break;
}