From d68763cd7cb4f7487d760a1dea17ca167d45e182 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 5 Nov 2015 16:37:11 +0100 Subject: Start using stdint types --- 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 4e68ebe..140c832 100644 --- a/source/spc700.c +++ b/source/spc700.c @@ -149,7 +149,7 @@ void S9xAPUSetByte(uint8_t, uint32_t address); // XXX: HalfCarry - BJ fixed? #define SBC(a,b)\ -int16_t Int16 = (short) (a) - (short) (b) + (short) (APUCheckCarry ()) - 1;\ +int16_t Int16 = (int16_t) (a) - (int16_t) (b) + (int16_t) (APUCheckCarry ()) - 1;\ IAPU._Carry = Int16 >= 0;\ if ((((a) ^ (b)) & 0x80) && (((a) ^ (uint8_t) Int16) & 0x80))\ APUSetOverflow ();\ @@ -177,7 +177,7 @@ if(((a) ^ (b) ^ (uint8_t) Work16) & 0x10)\ APUSetZN8 ((uint8_t) Work16); #define CMP(a,b)\ -int16_t Int16 = (short) (a) - (short) (b);\ +int16_t Int16 = (int16_t) (a) - (int16_t) (b);\ IAPU._Carry = Int16 >= 0;\ APUSetZN8 ((uint8_t) Int16); -- cgit v1.2.3