From bd1b9ea7186414e90d2c6deb19dd3af9c336e6a0 Mon Sep 17 00:00:00 2001 From: Ty Date: Sat, 25 Oct 2025 12:37:47 -0400 Subject: [PATCH] Debugger: size_t -> int warning fix. Switched to u32. --- pcsx2-qt/Debugger/DisassemblyView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2-qt/Debugger/DisassemblyView.cpp b/pcsx2-qt/Debugger/DisassemblyView.cpp index 063ac34f7e..c9cb2d052b 100644 --- a/pcsx2-qt/Debugger/DisassemblyView.cpp +++ b/pcsx2-qt/Debugger/DisassemblyView.cpp @@ -118,11 +118,11 @@ void DisassemblyView::contextPasteInstructionText() // split text in clipboard by new lines QString clipboardText = QApplication::clipboard()->text(); std::vector newInstructions = StringUtil::splitOnNewLine(clipboardText.toLocal8Bit().constData()); - int newInstructionsSize = newInstructions.size(); + u32 newInstructionsSize = static_cast(newInstructions.size()); // validate new instructions before pasting them std::vector encodedInstructions; - for (int instructionIdx = 0; instructionIdx < newInstructionsSize; instructionIdx++) + for (u32 instructionIdx = 0; instructionIdx < newInstructionsSize; instructionIdx++) { u32 replaceAddress = m_selectedAddressStart + instructionIdx * 4; u32 encodedInstruction; @@ -137,7 +137,7 @@ void DisassemblyView::contextPasteInstructionText() } // paste validated instructions - for (int instructionIdx = 0; instructionIdx < newInstructionsSize; instructionIdx++) + for (u32 instructionIdx = 0; instructionIdx < newInstructionsSize; instructionIdx++) { u32 replaceAddress = m_selectedAddressStart + instructionIdx * 4; setInstructions(replaceAddress, replaceAddress, encodedInstructions[instructionIdx]);