From c5abcba77a9d6f5aada06ff32a71b6525c447080 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 19 Mar 2021 16:14:20 +0100 Subject: [PATCH] JitArm64: Fix broken format strings in Arm64RegCache --- Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp index 8fcdcc8131..1b26efe31b 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp @@ -72,7 +72,8 @@ void Arm64RegCache::LockRegister(ARM64Reg host_reg) { auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg); ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(), - "Don't try locking a register that isn't in the cache. Reg %d", host_reg); + "Don't try locking a register that isn't in the cache. Reg %d", + static_cast(host_reg)); reg->Lock(); } @@ -80,7 +81,8 @@ void Arm64RegCache::UnlockRegister(ARM64Reg host_reg) { auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg); ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(), - "Don't try unlocking a register that isn't in the cache. Reg %d", host_reg); + "Don't try unlocking a register that isn't in the cache. Reg %d", + static_cast(host_reg)); reg->Unlock(); }