mirror of https://github.com/stella-emu/stella.git
fix ROMs >= 64K (partially addresses #654)
This commit is contained in:
parent
fcb7dcf1f0
commit
22f6398eae
|
@ -291,7 +291,7 @@ uInt16 CartridgeEnhanced::getSegmentBank(uInt16 segment) const
|
||||||
uInt16 CartridgeEnhanced::romBankCount() const
|
uInt16 CartridgeEnhanced::romBankCount() const
|
||||||
{
|
{
|
||||||
// take care of too small ROMs
|
// take care of too small ROMs
|
||||||
return uInt16(mySize + ((1 << myBankShift) - 1)) >> myBankShift;
|
return uInt16((mySize + ((1 << myBankShift) - 1)) >> myBankShift);
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue