mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Fix a few code style remarks.
Removes some casting of size_t to int.
This commit is contained in:
parent
b4ec70f0ac
commit
c2b6a41e6b
1 changed files with 8 additions and 8 deletions
|
@ -22,7 +22,7 @@ void RegCache::Start()
|
||||||
xreg.locked = false;
|
xreg.locked = false;
|
||||||
xreg.ppcReg = -1;
|
xreg.ppcReg = -1;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < (int)regs.size(); i++)
|
for (size_t i = 0; i < regs.size(); i++)
|
||||||
{
|
{
|
||||||
regs[i].location = GetDefaultLocation(i);
|
regs[i].location = GetDefaultLocation(i);
|
||||||
regs[i].away = false;
|
regs[i].away = false;
|
||||||
|
@ -313,17 +313,17 @@ void FPURegCache::StoreRegister(int preg, OpArg newLoc)
|
||||||
|
|
||||||
void RegCache::Flush(FlushMode mode)
|
void RegCache::Flush(FlushMode mode)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < (int)xregs.size(); i++)
|
for (size_t i = 0; i < xregs.size(); i++)
|
||||||
{
|
{
|
||||||
if (xregs[i].locked)
|
if (xregs[i].locked)
|
||||||
PanicAlert("Someone forgot to unlock X64 reg %i.", i);
|
PanicAlert("Someone forgot to unlock X64 reg %zu.", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < (int)regs.size(); i++)
|
for (size_t i = 0; i < regs.size(); i++)
|
||||||
{
|
{
|
||||||
if (regs[i].locked)
|
if (regs[i].locked)
|
||||||
{
|
{
|
||||||
PanicAlert("Someone forgot to unlock PPC reg %i (X64 reg %i).", i, RX(i));
|
PanicAlert("Someone forgot to unlock PPC reg %zu (X64 reg %i).", i, RX(i));
|
||||||
}
|
}
|
||||||
if (regs[i].away)
|
if (regs[i].away)
|
||||||
{
|
{
|
||||||
|
@ -333,7 +333,7 @@ void RegCache::Flush(FlushMode mode)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_assert_msg_(DYNA_REC,0,"Jit64 - Flush unhandled case, reg %i PC: %08x", i, PC);
|
_assert_msg_(DYNA_REC,0,"Jit64 - Flush unhandled case, reg %zu PC: %08x", i, PC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue