Permalink
Browse files

Merge pull request #7370 from lioncash/constness

JitArm64/Jit: Don't cast away const within DumpCode()
  • Loading branch information...
delroth committed Aug 27, 2018
2 parents 21ef711 + cc2ef5a commit 88a91562b542f2066f14a0205aeea50f6d1d6125
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Core/Core/PowerPC/JitArm64/Jit.cpp
@@ -489,9 +489,9 @@ void JitArm64::WriteExceptionExit(ARM64Reg dest, bool only_external)
void JitArm64::DumpCode(const u8* start, const u8* end)
{
std::string output = "";
for (u8* code = (u8*)start; code < end; code += 4)
output += StringFromFormat("%08x", Common::swap32(*(u32*)code));
std::string output;
for (const u8* code = start; code < end; code += sizeof(u32))
output += StringFromFormat("%08x", Common::swap32(code));
WARN_LOG(DYNA_REC, "Code dump from %p to %p:\n%s", start, end, output.c_str());
}

0 comments on commit 88a9156

Please sign in to comment.