From 0e59b999fa976de2d00490f552a1ff0a27d40f63 Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 29 Jan 2017 04:55:23 +0000 Subject: Converted most types to stdint-style (fixing a few in the process). --- source/spc700.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/spc700.c') diff --git a/source/spc700.c b/source/spc700.c index 5e50cf3..7b1a8b7 100644 --- a/source/spc700.c +++ b/source/spc700.c @@ -158,11 +158,11 @@ APUSetZN8 ((uint8_t) Int16); #define Relative()\ Int8 = OP1;\ - Int16 = (intptr_t) (IAPU.PC + 2 - IAPU.RAM) + Int8; + Int16 = (int16_t) (IAPU.PC + 2 - IAPU.RAM) + Int8; #define Relative2()\ Int8 = OP2;\ - Int16 = (intptr_t) (IAPU.PC + 3 - IAPU.RAM) + Int8; + Int16 = (int16_t) (IAPU.PC + 3 - IAPU.RAM) + Int8; #ifdef FAST_LSB_WORD_ACCESS #define IndexedXIndirect()\ -- cgit v1.2.3