diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index a529e3662d62..494bd440fdee 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -111,7 +111,8 @@ static bool s_bPolled = false; // s_InputDisplay is used by both CPU and GPU (is mutable). static std::mutex s_input_display_lock; -static std::array s_InputDisplay; +static std::array(SerialInterface::MAX_SI_CHANNELS) + MAX_BBMOTES> + s_InputDisplay; static GCManipFunction s_gc_manip_func; static WiiManipFunction s_wii_manip_func; @@ -868,7 +869,8 @@ void ReadHeader() { s_controllers = tmpHeader.controllers; if (tmpHeader.bBalanceBoard) - s_controllers |= 1 << (SerialInterface::MAX_SI_CHANNELS + WIIMOTE_BALANCE_BOARD); + s_controllers |= + 1 << (static_cast(SerialInterface::MAX_SI_CHANNELS) + WIIMOTE_BALANCE_BOARD); s_recordingStartTime = tmpHeader.recordingStartTime; if (s_rerecords < tmpHeader.numRerecords) s_rerecords = tmpHeader.numRerecords; @@ -1324,7 +1326,8 @@ void SaveRecording(const std::string& filename) header.bFollowBranch = SConfig::GetInstance().bJITFollowBranch; header.controllers = s_controllers & (SConfig::GetInstance().bWii ? 0xFF : 0x0F); header.bBalanceBoard = - (s_controllers & (1 << (SerialInterface::MAX_SI_CHANNELS + WIIMOTE_BALANCE_BOARD))) != 0; + (s_controllers & + (1 << (static_cast(SerialInterface::MAX_SI_CHANNELS) + WIIMOTE_BALANCE_BOARD))) != 0; header.bFromSaveState = s_bRecordingFromSaveState; header.frameCount = s_totalFrames;