From 733ce9890e1d12f546be6faceca16ff9591f8ac8 Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 25 Jun 2019 00:06:52 -0700 Subject: add a bunch of decode errors as test cases --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bee1173..e95f4dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1987,7 +1987,7 @@ fn read_E_anybank>(bytes_iter: &mut T, prefixes: &Prefixes, let disp = if modbits == 0b01 { read_num(bytes_iter, 1, length) as i8 as i32 } else { - read_num(bytes_iter, 4, length) as i8 as i32 + read_num(bytes_iter, 4, length) as i32 }; *result = Operand::RegDisp(reg, disp); } -- cgit v1.1