From eed5450a204d3300096dafa3dbca8681806c8a11 Mon Sep 17 00:00:00 2001 From: stephena Date: Sat, 6 Jun 2009 14:24:38 +0000 Subject: [PATCH] Fixed GCC 4.4 warning. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1753 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/emucore/CartCV.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emucore/CartCV.cxx b/src/emucore/CartCV.cxx index 3a0f2a96a..54bf935f0 100644 --- a/src/emucore/CartCV.cxx +++ b/src/emucore/CartCV.cxx @@ -115,8 +115,8 @@ uInt8 CartridgeCV::peek(uInt16 address) // Reading from the write port triggers an unwanted write // The value written to RAM is somewhat undefined, so we use 0 // Thanks to Kroko of AtariAge for this advice and code idea - if(address & 0x0FFF < 0x0800) // Write port is at 0xF400 - 0xF800 (1024 bytes) - { // Read port is handled in ::install() + if((address & 0x0FFF) < 0x0800) // Write port is at 0xF400 - 0xF800 (1024 bytes) + { // Read port is handled in ::install() if(myBankLocked) return 0; else return myRAM[address & 0x03FF] = 0; }