fix ROMs >= 64K (partially addresses #654)

This commit is contained in:
thrust26 2020-06-07 08:22:07 +02:00
parent fcb7dcf1f0
commit 22f6398eae
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ uInt16 CartridgeEnhanced::getSegmentBank(uInt16 segment) const
uInt16 CartridgeEnhanced::romBankCount() const
{
// take care of too small ROMs
return uInt16(mySize + ((1 << myBankShift) - 1)) >> myBankShift;
return uInt16((mySize + ((1 << myBankShift) - 1)) >> myBankShift);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -