Fixed GCC 4.4 warning.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1753 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2009-06-06 14:24:38 +00:00
parent 2bc2ff639c
commit eed5450a20
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ 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)
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;