aboutsummaryrefslogtreecommitdiff
path: root/source/sa1.c
diff options
context:
space:
mode:
authorJoão Silva2017-08-16 17:59:11 +0100
committerJoão Silva2017-08-16 17:59:11 +0100
commitaef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (patch)
treef1d740e45522954e48e036103268c5ccb5dcbef2 /source/sa1.c
parentaa610b2ba997a945c77ce06e9a33638dedb480da (diff)
downloadsnes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.gz
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.bz2
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.zip
Changed compile-time flags to use C89 and fixed new warnings raised.
Diffstat (limited to 'source/sa1.c')
-rw-r--r--source/sa1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/sa1.c b/source/sa1.c
index e190b5c..b17b562 100644
--- a/source/sa1.c
+++ b/source/sa1.c
@@ -455,7 +455,7 @@ void S9xSetSA1(uint8_t byte, uint32_t address)
case 0x2237:
Memory.FillRAM [address] = byte;
if ((Memory.FillRAM [0x2230] & 0xa4) == 0x84)
- S9xSA1DMA(); // Normal DMA to BW-RAM
+ S9xSA1DMA(); /* Normal DMA to BW-RAM */
break;
case 0x223f:
SA1.VirtualBitmapFormat = (byte & 0x80) ? 2 : 4;
@@ -508,8 +508,8 @@ void S9xSetSA1(uint8_t byte, uint32_t address)
break;
default: /* cumulative sum */
SA1.sum += (int16_t) SA1.op1 * (int16_t) SA1.op2;
- SA1.overflow = (SA1.sum >= (1ULL << 40));
- SA1.sum &= (1ULL << 40) - 1;
+ SA1.overflow = (SA1.sum >= (((uint64_t) 1) << 40));
+ SA1.sum &= (((uint64_t) 1) << 40) - 1;
SA1.op2 = 0;
break;
}