diff --git a/src/emucore/CartMDM.cxx b/src/emucore/CartMDM.cxx index a1d8a11ca..bc20f76da 100644 --- a/src/emucore/CartMDM.cxx +++ b/src/emucore/CartMDM.cxx @@ -119,7 +119,7 @@ bool CartridgeMDM::bank(uInt16 bank) // Remember what bank we're in // Wrap around to a valid bank number if necessary myCurrentBank = bank % bankCount(); - uInt16 offset = myCurrentBank << 12; + uInt32 offset = myCurrentBank << 12; uInt16 shift = mySystem->pageShift(); // Setup the page access methods for the current bank