From 314143db7a19923b729d86227062f20b9dd7e8c2 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Thu, 5 Jan 2023 11:46:06 +0100 Subject: [PATCH] Debugger: Fix clarify calculation precedence for '&' and '?' warnings. Codacy. --- pcsx2-qt/Debugger/CpuWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2-qt/Debugger/CpuWidget.cpp b/pcsx2-qt/Debugger/CpuWidget.cpp index 488a63ec91..5ce1b37640 100644 --- a/pcsx2-qt/Debugger/CpuWidget.cpp +++ b/pcsx2-qt/Debugger/CpuWidget.cpp @@ -311,9 +311,9 @@ void CpuWidget::updateBreakpoints() // Type (R/O) QTableWidgetItem* typeItem = new QTableWidgetItem(); QString type(""); - type += memcheck.cond & MEMCHECK_READ ? tr("Read") : ""; + type += (memcheck.cond & MEMCHECK_READ) ? tr("Read") : ""; type += ((memcheck.cond & MEMCHECK_BOTH) == MEMCHECK_BOTH) ? ", " : " "; - type += memcheck.cond & MEMCHECK_WRITE ? memcheck.cond & MEMCHECK_WRITE_ONCHANGE ? tr("Write(C)") : tr("Write") : ""; + type += (memcheck.cond & MEMCHECK_WRITE) ? (memcheck.cond & MEMCHECK_WRITE_ONCHANGE) ? tr("Write(C)") : tr("Write") : ""; typeItem->setText(type); typeItem->setFlags(Qt::ItemFlag::ItemIsEnabled | Qt::ItemFlag::ItemIsSelectable); m_ui.breakpointList->setItem(iter, 0, typeItem);