better typecasting

This commit is contained in:
Jorj Bauer 2020-07-04 07:38:49 -04:00
parent 7f65cfb64d
commit fe237290a0
1 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,8 @@ AppleMMU::~AppleMMU()
bool AppleMMU::Serialize(int8_t fd) bool AppleMMU::Serialize(int8_t fd)
{ {
uint8_t buf[13] = { MMUMAGIC, uint8_t buf[13] = { MMUMAGIC,
(switches >> 8) & 0xFF, (uint8_t)((switches >> 8) & 0xFF),
(switches ) & 0xFF, (uint8_t)((switches ) & 0xFF),
auxRamRead ? 1 : 0, auxRamRead ? 1 : 0,
auxRamWrite ? 1 : 0, auxRamWrite ? 1 : 0,
bank2 ? 1 : 0, bank2 ? 1 : 0,