From fe237290a0f956c829b646b0054a8e13ca07aa6e Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Sat, 4 Jul 2020 07:38:49 -0400 Subject: [PATCH] better typecasting --- apple/applemmu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/applemmu.cpp b/apple/applemmu.cpp index e00a692..899cd3f 100644 --- a/apple/applemmu.cpp +++ b/apple/applemmu.cpp @@ -156,8 +156,8 @@ AppleMMU::~AppleMMU() bool AppleMMU::Serialize(int8_t fd) { uint8_t buf[13] = { MMUMAGIC, - (switches >> 8) & 0xFF, - (switches ) & 0xFF, + (uint8_t)((switches >> 8) & 0xFF), + (uint8_t)((switches ) & 0xFF), auxRamRead ? 1 : 0, auxRamWrite ? 1 : 0, bank2 ? 1 : 0,