diff options
author | Angelo Salese <angelosa@users.noreply.github.com> | 2010-04-07 01:31:05 +0000 |
---|---|---|
committer | Angelo Salese <angelosa@users.noreply.github.com> | 2010-04-07 01:31:05 +0000 |
commit | d1a69519f10c6a0f37f7c75e7a4a92358f3517ce (patch) | |
tree | 9102f611b53f46b9119a9577cf18d4498bde8af7 | |
parent | 4e18ddef23d4b109839308cfbfac2b5e811f6164 (diff) |
Fixed integer overflow, no whatsnew
-rw-r--r-- | src/mame/machine/snes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/snes.c b/src/mame/machine/snes.c index 9443d478df4..d7485f27a69 100644 --- a/src/mame/machine/snes.c +++ b/src/mame/machine/snes.c @@ -1175,7 +1175,7 @@ READ8_HANDLER( snes_r_bank7 ) else /* Mode 21 & 25 + SuperFX Games */ value = snes_ram[0xc00000 + offset]; - cpu_adjust_icount(space->cpu, -(snes_ram[MEMSEL] & 1) ? 6 : 8); + cpu_adjust_icount(space->cpu, -((snes_ram[MEMSEL] & 1) ? 6 : 8)); return value; } @@ -1405,7 +1405,7 @@ WRITE8_HANDLER( snes_w_bank7 ) else if (snes_cart.mode & 0x0a) logerror("(PC=%06x) Attempt to write to ROM address: %X\n",cpu_get_pc(space->cpu),offset + 0xc00000); - cpu_adjust_icount(space->cpu, -(snes_ram[MEMSEL] & 1) ? 6 : 8); + cpu_adjust_icount(space->cpu, -((snes_ram[MEMSEL] & 1) ? 6 : 8)); } |