Debugger: Fix mismatch sign compare & bitwise on different enum warnings

This commit is contained in:
Ty Lamontagne 2023-07-26 20:06:47 -04:00 committed by refractionpcsx2
parent 5ba6e57c71
commit 87c42aeaf4
2 changed files with 2 additions and 2 deletions

View File

@ -589,7 +589,7 @@ static std::vector<u32> searchWorkerByteArray(DebugInterface* cpu, u32 start, u3
bool hit = true; bool hit = true;
for (qsizetype i = 0; i < value.length(); i++) for (qsizetype i = 0; i < value.length(); i++)
{ {
if (cpu->read8(addr + i) != value[i]) if (static_cast<char>(cpu->read8(addr + i)) != value[i])
{ {
hit = false; hit = false;
break; break;

View File

@ -78,7 +78,7 @@ QVariant BreakpointModel::data(const QModelIndex& index, int role) const
{ {
QString type(""); QString type("");
type += (mc->cond & MEMCHECK_READ) ? tr("Read") : ""; type += (mc->cond & MEMCHECK_READ) ? tr("Read") : "";
type += ((mc->cond & MEMCHECK_BOTH) == MEMCHECK_BOTH) ? ", " : " "; type += ((mc->cond & MEMCHECK_READWRITE) == MEMCHECK_READWRITE) ? ", " : " ";
//: (C) = changes, as in "look for changes". //: (C) = changes, as in "look for changes".
type += (mc->cond & MEMCHECK_WRITE) ? (mc->cond & MEMCHECK_WRITE_ONCHANGE) ? tr("Write(C)") : tr("Write") : ""; type += (mc->cond & MEMCHECK_WRITE) ? (mc->cond & MEMCHECK_WRITE_ONCHANGE) ? tr("Write(C)") : tr("Write") : "";
return type; return type;