Skip to content

Commit

Permalink
Merge pull request capstone-engine#75 from enzolovesbacon/fix_X86_REL…
Browse files Browse the repository at this point in the history
…_ADDR_macro

Fix the X86_REL_ADDR macro in x86.h
  • Loading branch information
aquynh committed Feb 19, 2014
2 parents 5420dc3 + cbde4c4 commit d8d574b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern "C" {
#include <stdint.h>

// Calculate relative address for X86-64, given cs_insn structure
#define X86_REL_ADDR(insn) (insn.addr + insn.size + insn.x86.disp)
#define X86_REL_ADDR(insn) (insn.address + insn.size + insn.detail->x86.disp)

//> X86 registers
typedef enum x86_reg {
Expand Down

0 comments on commit d8d574b

Please sign in to comment.