aboutsummaryrefslogtreecommitdiff
path: root/src/protected_mode/evex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/protected_mode/evex.rs')
-rw-r--r--src/protected_mode/evex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protected_mode/evex.rs b/src/protected_mode/evex.rs
index cb0a4ba..2ef91b6 100644
--- a/src/protected_mode/evex.rs
+++ b/src/protected_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 u32;
+ inst.disp = ((inst.disp as i32) * (inst.mem_size as i32)) as u32;
}
include!("../shared/generated_evex.in");