aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2014-10-30 04:42:31 +0100
committertwinaphex2014-10-30 04:42:31 +0100
commit4de9deed290c6b0ff42768e8b271b5ad08f62ea9 (patch)
tree48a90238b379e034f30b5a8c1282eaac037acee0
parent20e913fd697bb6ce3b44cf6aa037662b22892bc6 (diff)
downloadsnesemu-4de9deed290c6b0ff42768e8b271b5ad08f62ea9.tar.gz
snesemu-4de9deed290c6b0ff42768e8b271b5ad08f62ea9.tar.bz2
snesemu-4de9deed290c6b0ff42768e8b271b5ad08f62ea9.zip
Cleanup some warnings in S9xGetWord
-rw-r--r--source/getset.h8
1 files changed, 4 insertions, 4 deletions
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;