# HG changeset patch # User ramiro # Date 1210281084 0 # Node ID 1b2d09914b4e186d21610f5c4693238dade6c81f # Parent 29eecf0241bd7bdbb15c8e02327d60296773bf47 Do not misuse long as the size of a register in x86. typedef x86_reg as the appropriate size and use it instead. diff -r 29eecf0241bd -r 1b2d09914b4e x86_cpu.h --- a/x86_cpu.h Tue May 06 09:16:36 2008 +0000 +++ b/x86_cpu.h Thu May 08 21:11:24 2008 +0000 @@ -31,6 +31,7 @@ # define REG_D "rdi" # define REG_S "rsi" # define PTR_SIZE "8" +typedef int64_t x86_reg; # define REG_SP "rsp" # define REG_BP "rbp" @@ -50,6 +51,7 @@ # define REG_D "edi" # define REG_S "esi" # define PTR_SIZE "4" +typedef int32_t x86_reg; # define REG_SP "esp" # define REG_BP "ebp"