aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-06-25 00:06:52 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit733ce9890e1d12f546be6faceca16ff9591f8ac8 (patch)
tree3e89656b8e4303c7a0a93c2410cbb1a0b16d3773 /src/lib.rs
parent06b9d518496b90e83ad8b9857973442b978ed3e6 (diff)
add a bunch of decode errors as test cases
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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<T: Iterator<Item=u8>>(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);
}