From 4de9deed290c6b0ff42768e8b271b5ad08f62ea9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 30 Oct 2014 04:42:31 +0100 Subject: Cleanup some warnings in S9xGetWord --- source/getset.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/getset.h') diff --git a/source/getset.h b/source/getset.h index 05247c9..2bba5b1 100644 --- a/source/getset.h +++ b/source/getset.h @@ -494,11 +494,11 @@ static inline void S9xSetWord(uint16 Word, uint32 Address) /* BJ: no FAST_LSB_WORD_ACCESS here, since if Memory.SRAMMask=0x7ff * then the high byte doesn't follow the low byte. */ *(Memory.SRAM + - (((Address & 0x7fff) - 0x6000 + - ((Address & 0xf0000) >> 3) & Memory.SRAMMask))) = (uint8) Word; + (((((Address & 0x7fff) - 0x6000) + + ((Address & 0xf0000) >> 3)) & Memory.SRAMMask))) = (uint8) Word; *(Memory.SRAM + - ((((Address + 1) & 0x7fff) - 0x6000 + - (((Address + 1) & 0xf0000) >> 3) & Memory.SRAMMask))) = (uint8)(Word >> 8); + ((((((Address + 1) & 0x7fff) - 0x6000) + + (((Address + 1) & 0xf0000) >> 3)) & Memory.SRAMMask))) = (uint8)(Word >> 8); CPU.SRAMModified = TRUE; } return; -- cgit v1.2.3