Skip to content

Commit

Permalink
Disassembler: fix argument type usize -> u64
Browse files Browse the repository at this point in the history
  • Loading branch information
athre0z committed Nov 20, 2022
1 parent de4cbcd commit 1ba75ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/Zydis/Disassembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ typedef struct ZydisDisassembledInstruction_
* @return A zyan status code.
*/
ZYDIS_EXPORT ZyanStatus ZydisDisassembleIntel(ZydisMachineMode machine_mode,
ZyanUSize runtime_address, const void* buffer, ZyanUSize length,
ZyanU64 runtime_address, const void* buffer, ZyanUSize length,
ZydisDisassembledInstruction *instruction);

/**
Expand All @@ -123,7 +123,7 @@ ZYDIS_EXPORT ZyanStatus ZydisDisassembleIntel(ZydisMachineMode machine_mode,
* @copydetails ZydisDisassembleIntel
*/
ZYDIS_EXPORT ZyanStatus ZydisDisassembleATT(ZydisMachineMode machine_mode,
ZyanUSize runtime_address, const void* buffer, ZyanUSize length,
ZyanU64 runtime_address, const void* buffer, ZyanUSize length,
ZydisDisassembledInstruction *instruction);

/* ============================================================================================== */
Expand Down
6 changes: 3 additions & 3 deletions src/Disassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/* ============================================================================================== */

static ZyanStatus ZydisDisassemble(ZydisMachineMode machine_mode,
ZyanUSize runtime_address, const void* buffer, ZyanUSize length,
ZyanU64 runtime_address, const void* buffer, ZyanUSize length,
ZydisDisassembledInstruction *instruction, ZydisFormatterStyle style)
{
if (!buffer || !instruction)
Expand Down Expand Up @@ -87,15 +87,15 @@ static ZyanStatus ZydisDisassemble(ZydisMachineMode machine_mode,
/* ============================================================================================== */

ZyanStatus ZydisDisassembleIntel(ZydisMachineMode machine_mode,
ZyanUSize runtime_address, const void* buffer, ZyanUSize length,
ZyanU64 runtime_address, const void* buffer, ZyanUSize length,
ZydisDisassembledInstruction *instruction)
{
return ZydisDisassemble(machine_mode, runtime_address, buffer, length, instruction,
ZYDIS_FORMATTER_STYLE_INTEL);
}

ZyanStatus ZydisDisassembleATT(ZydisMachineMode machine_mode,
ZyanUSize runtime_address, const void* buffer, ZyanUSize length,
ZyanU64 runtime_address, const void* buffer, ZyanUSize length,
ZydisDisassembledInstruction *instruction)
{
return ZydisDisassemble(machine_mode, runtime_address, buffer, length, instruction,
Expand Down

0 comments on commit 1ba75ae

Please sign in to comment.