From 12fa26013769a79c1ee09b1c2b9847ca1414a5e7 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 28 Dec 2019 15:01:28 -0330 Subject: [PATCH] A few fixes I missed in the last commits. --- src/emucore/Thumbulator.cxx | 4 +++- src/emucore/tia/Missile.cxx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/emucore/Thumbulator.cxx b/src/emucore/Thumbulator.cxx index a9d0834af..d03193b3d 100644 --- a/src/emucore/Thumbulator.cxx +++ b/src/emucore/Thumbulator.cxx @@ -1172,8 +1172,10 @@ int Thumbulator::execute() case 0xF: //swi break; - } + default: + break; + } break; } diff --git a/src/emucore/tia/Missile.cxx b/src/emucore/tia/Missile.cxx index c1e713a24..89fdc607d 100644 --- a/src/emucore/tia/Missile.cxx +++ b/src/emucore/tia/Missile.cxx @@ -143,7 +143,7 @@ void Missile::toggleEnabled(bool enabled) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void Missile::nusiz(uInt8 value) { - static constexpr uInt8 ourWidths[] = { 1, 2, 4, 8 }; + static constexpr std::array ourWidths = { 1, 2, 4, 8 }; myDecodesOffset = value & 0x07; myWidth = ourWidths[(value & 0x30) >> 4];