diff options
author | aliaspider | 2014-10-28 05:39:03 +0100 |
---|---|---|
committer | aliaspider | 2014-10-28 05:39:03 +0100 |
commit | 76fef9625dd83399979a653b74f377f730725a70 (patch) | |
tree | f043e3774bc36acd7af98a2e8c3beb4a6fcbbf88 /source/spc700.cpp | |
parent | 5a96997f186b2cff1a24ed5572430fe0f031e8d3 (diff) | |
download | snes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.gz snes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.bz2 snes9x2005-76fef9625dd83399979a653b74f377f730725a70.zip |
64-bit safer
Diffstat (limited to 'source/spc700.cpp')
-rw-r--r-- | source/spc700.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/spc700.cpp b/source/spc700.cpp index c12cd08..7f2c5d2 100644 --- a/source/spc700.cpp +++ b/source/spc700.cpp @@ -247,11 +247,11 @@ APUSetZN8 ((uint8) Int16); #define Relative()\ int8 Int8 = OP1;\ - int16 Int16 = (int) (IAPU.PC + 2 - IAPU.RAM) + Int8; + int16 Int16 = (intptr_t) (IAPU.PC + 2 - IAPU.RAM) + Int8; #define Relative2()\ int8 Int8 = OP2;\ - int16 Int16 = (int) (IAPU.PC + 3 - IAPU.RAM) + Int8; + int16 Int16 = (intptr_t) (IAPU.PC + 3 - IAPU.RAM) + Int8; #ifdef FAST_LSB_WORD_ACCESS #define IndexedXIndirect()\ |