Skip to content

Commit

Permalink
Fix prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Dec 23, 2023
1 parent ac14425 commit 192f4a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instructionAPI/src/x86/decoder.C
Expand Up @@ -74,7 +74,7 @@ namespace Dyninst { namespace InstructionAPI {
// The iterator form of disassembly allows reuse of the instruction object, reducing
// the number of memory allocations.
if(!cs_disasm_iter(dis.handle, &code, &codeSize, &cap_addr, dis.insn)) {
decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast<void*>(code),
decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast<void const*>(code),
cs_strerror(cs_errno(dis.handle)));
return;
}
Expand All @@ -92,7 +92,7 @@ namespace Dyninst { namespace InstructionAPI {
// The iterator form of disassembly allows reuse of the instruction object, reducing
// the number of memory allocations.
if(!cs_disasm_iter(dis.handle, &code, &codeSize, &cap_addr, dis.insn)) {
decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast<void*>(code),
decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast<void const*>(code),
cs_strerror(cs_errno(dis.handle)));
m_Operation = Operation(e_No_Entry, "INVALID", m_Arch);
return;
Expand Down

0 comments on commit 192f4a6

Please sign in to comment.