DSPJitRegCache: Remove unnecessary casts in FlushRegs()

We can just use the proper printf specifiers instead.
This commit is contained in:
Lioncash 2018-04-01 15:47:40 -04:00
parent d8dd7b9e66
commit fe9d989765
1 changed files with 6 additions and 6 deletions

View File

@ -293,21 +293,21 @@ void DSPJitRegCache::FlushRegs(DSPJitRegCache& cache, bool emit)
for (size_t i = 0; i < m_xregs.size(); i++)
{
ASSERT_MSG(DSPLLE, m_xregs[i].guest_reg == cache.m_xregs[i].guest_reg,
"cache and current xreg guest_reg mismatch for %u", static_cast<u32>(i));
"cache and current xreg guest_reg mismatch for %zu", i);
}
for (size_t i = 0; i < m_regs.size(); i++)
{
ASSERT_MSG(DSPLLE, m_regs[i].loc.IsImm() == cache.m_regs[i].loc.IsImm(),
"cache and current reg loc mismatch for %i", static_cast<u32>(i));
"cache and current reg loc mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].loc.GetSimpleReg() == cache.m_regs[i].loc.GetSimpleReg(),
"cache and current reg loc mismatch for %i", static_cast<u32>(i));
"cache and current reg loc mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].dirty || !cache.m_regs[i].dirty,
"cache and current reg dirty mismatch for %i", static_cast<u32>(i));
"cache and current reg dirty mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].used == cache.m_regs[i].used,
"cache and current reg used mismatch for %i", static_cast<u32>(i));
"cache and current reg used mismatch for %zu", i);
ASSERT_MSG(DSPLLE, m_regs[i].shift == cache.m_regs[i].shift,
"cache and current reg shift mismatch for %i", static_cast<u32>(i));
"cache and current reg shift mismatch for %zu", i);
}
m_use_ctr = cache.m_use_ctr;