diff options
author | twinaphex | 2014-10-30 04:42:31 +0100 |
---|---|---|
committer | twinaphex | 2014-10-30 04:42:31 +0100 |
commit | 4de9deed290c6b0ff42768e8b271b5ad08f62ea9 (patch) | |
tree | 48a90238b379e034f30b5a8c1282eaac037acee0 | |
parent | 20e913fd697bb6ce3b44cf6aa037662b22892bc6 (diff) | |
download | snesemu-4de9deed290c6b0ff42768e8b271b5ad08f62ea9.tar.gz snesemu-4de9deed290c6b0ff42768e8b271b5ad08f62ea9.tar.bz2 snesemu-4de9deed290c6b0ff42768e8b271b5ad08f62ea9.zip |
Cleanup some warnings in S9xGetWord
-rw-r--r-- | source/getset.h | 8 |
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; |