diff options
Diffstat (limited to 'src/long_mode')
-rw-r--r-- | src/long_mode/evex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/long_mode/evex.rs b/src/long_mode/evex.rs index 7f456e7..5c0967b 100644 --- a/src/long_mode/evex.rs +++ b/src/long_mode/evex.rs @@ -11,7 +11,7 @@ fn isa_has_qwords() -> bool { } fn apply_disp_scale(inst: &mut Instruction) { - inst.disp *= inst.mem_size as u64; + inst.disp = ((inst.disp as i64) * (inst.mem_size as i64)) as u64; } include!("../shared/generated_evex.in"); |