Merge pull request #4628 from lioncash/const

Jit64Base: Const correctness for LogGeneratedX86
This commit is contained in:
Markus Wick 2017-01-08 10:54:40 +01:00 committed by GitHub
commit 6b764adbea
2 changed files with 5 additions and 5 deletions

View File

@ -126,10 +126,10 @@ bool Jitx86Base::BackPatch(u32 emAddress, SContext* ctx)
return true;
}
void LogGeneratedX86(int size, PPCAnalyst::CodeBuffer* code_buffer, const u8* normalEntry,
JitBlock* b)
void LogGeneratedX86(size_t size, const PPCAnalyst::CodeBuffer* code_buffer, const u8* normalEntry,
const JitBlock* b)
{
for (int i = 0; i < size; i++)
for (size_t i = 0; i < size; i++)
{
const PPCAnalyst::CodeOp& op = code_buffer->codebuffer[i];
std::string temp = StringFromFormat(

View File

@ -47,5 +47,5 @@ public:
bool HandleFault(uintptr_t access_address, SContext* ctx) override;
};
void LogGeneratedX86(int size, PPCAnalyst::CodeBuffer* code_buffer, const u8* normalEntry,
JitBlock* b);
void LogGeneratedX86(size_t size, const PPCAnalyst::CodeBuffer* code_buffer, const u8* normalEntry,
const JitBlock* b);