Make sharpmz.cpp build on gcc 8.3.0

This little change made sharpmz.cpp build on gcc 8.3.0
arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Ubuntu 8.3.0-6ubuntu1~18.10.1) 8.3.0
This commit is contained in:
Adam Polkosnik [fun]
2019-07-15 21:45:38 -04:00
committed by GitHub
parent 812b8f7f00
commit 6089a5a367

View File

@@ -1567,7 +1567,7 @@ short sharpmz_read_ram(const char *memDumpFile, short bank)
// Depending on the bank, or all banks, loop until request is complete.
//
for(unsigned int mb=(bank == SHARPMZ_MEMBANK_ALL ? 0 : bank); mb <= (uint)(bank == SHARPMZ_MEMBANK_ALL ? SHARPMZ_MEMBANK_MAXBANKS-1 : bank); mb++)
for(unsigned int mb=(bank == SHARPMZ_MEMBANK_ALL ? 0 : bank); mb <= (unsigned int)(bank == SHARPMZ_MEMBANK_ALL ? SHARPMZ_MEMBANK_MAXBANKS-1 : bank); mb++)
{
// Skip bank 1, as SYSROM spans two physical banks 0 and 1.
if(mb == 1) mb = SHARPMZ_MEMBANK_SYSRAM;