mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Fix mismatch sign compare & bitwise on different enum warnings
This commit is contained in:
parent
5ba6e57c71
commit
87c42aeaf4
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue