From 48e55ab87b3eeff950a62ba7739f7653253e5c35 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 11 Oct 2021 20:35:17 +1000 Subject: [PATCH] MDEC: Fix warnings in gcc debug build --- src/core/mdec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/mdec.cpp b/src/core/mdec.cpp index 7e1d88411..d9b157342 100644 --- a/src/core/mdec.cpp +++ b/src/core/mdec.cpp @@ -131,7 +131,7 @@ void MDEC::DMARead(u32* words, u32 word_count) word_count -= words_to_read; } - Log_DebugPrintf("DMA read complete, %u bytes left", m_data_out_fifo.GetSize() * sizeof(u32)); + Log_DebugPrintf("DMA read complete, %u bytes left", static_cast(m_data_out_fifo.GetSize() * sizeof(u32))); if (m_data_out_fifo.IsEmpty()) Execute(); } @@ -540,7 +540,7 @@ void MDEC::CopyOutBlock() } Log_DebugPrintf("Block copied out, fifo size = %u (%u bytes)", m_data_out_fifo.GetSize(), - m_data_out_fifo.GetSize() * sizeof(u32)); + static_cast(m_data_out_fifo.GetSize() * sizeof(u32))); // if we've copied out all blocks, command is complete m_state = (m_remaining_halfwords == 0) ? State::Idle : State::DecodingMacroblock;