diff options
author | comex | 2015-02-14 23:50:30 -0500 |
---|---|---|
committer | comex | 2015-02-14 23:50:30 -0500 |
commit | 7dd3043eed8d9bac9ce48765335fdbe52b907b42 (patch) | |
tree | f62413fb90461eb4d1f71d695adc730f4722edb1 /lib/x86/jump-patch.h | |
parent | Trampoline fixes. (diff) | |
download | substitute-7dd3043eed8d9bac9ce48765335fdbe52b907b42.tar.gz |
fix test cases
Diffstat (limited to '')
-rw-r--r-- | lib/x86/jump-patch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x86/jump-patch.h b/lib/x86/jump-patch.h index 8cd7d6f..ca7b16c 100644 --- a/lib/x86/jump-patch.h +++ b/lib/x86/jump-patch.h @@ -15,7 +15,7 @@ static inline int jump_patch_size(uint_tptr pc, uint_tptr dpc, static inline void make_jump_patch(void **codep, uint_tptr pc, uint_tptr dpc, UNUSED struct arch_dis_ctx arch) { - uint_tptr diff = pc - (dpc + 5); + uint_tptr diff = dpc - (pc + 5); void *code = *codep; if (diff == (uint_tptr) (int32_t) diff) { op8(&code, 0xe9); |