mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Common/DebugInterface: Make return value of GetColor() a u32
At its only usage point, its return value is stored into a u32, and the default implementation returns 0xFFFFFFFF (-1), which would be an unsigned integer. Given all of the bits are used to determine a color, it makes slightly more sense to treat this as an unsigned value as opposed to a signed one.
This commit is contained in:
parent
a9a9b193bb
commit
d4d485b692
6 changed files with 28 additions and 24 deletions
|
@ -121,8 +121,8 @@ void CodeViewWidget::Update()
|
|||
|
||||
for (int i = 0; i < rowCount(); i++)
|
||||
{
|
||||
u32 addr = m_address - ((rowCount() / 2) * 4) + i * 4;
|
||||
u32 color = PowerPC::debug_interface.GetColor(addr);
|
||||
const u32 addr = m_address - ((rowCount() / 2) * 4) + i * 4;
|
||||
const u32 color = PowerPC::debug_interface.GetColor(addr);
|
||||
auto* bp_item = new QTableWidgetItem;
|
||||
auto* addr_item = new QTableWidgetItem(QStringLiteral("%1").arg(addr, 8, 16, QLatin1Char('0')));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue