From 22f6398eae8f370d2f2badab29450e9d998ccf15 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sun, 7 Jun 2020 08:22:07 +0200 Subject: [PATCH] fix ROMs >= 64K (partially addresses #654) --- src/emucore/CartEnhanced.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emucore/CartEnhanced.cxx b/src/emucore/CartEnhanced.cxx index 4d22deb39..ccd2d0e1a 100644 --- a/src/emucore/CartEnhanced.cxx +++ b/src/emucore/CartEnhanced.cxx @@ -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); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -