diff options
author | iximeow <me@iximeow.net> | 2020-05-03 14:00:41 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-05-03 14:00:41 -0700 |
commit | 9b7b1ed686377575169e26e0127f02722a16b0dd (patch) | |
tree | 8fb6591c605a9cdab450c08c14e1322b24ea0fc5 | |
parent | d94212e72297b7b839ca849efee636c0addd43bd (diff) |
version bump, bumping yaxpeax-arch to 0.0.40.0.3
-rw-r--r-- | Cargo.toml | 4 | ||||
-rw-r--r-- | src/lib.rs | 8 |
2 files changed, 6 insertions, 6 deletions
@@ -5,10 +5,10 @@ edition = "2018" license = "0BSD" name = "yaxpeax-m16c" repository = "http://git.iximeow.net/yaxpeax-m16c/" -version = "0.0.2" +version = "0.0.3" [dependencies] -yaxpeax-arch = { version = "0.0.3", default-features = false, features = [] } +yaxpeax-arch = { version = "0.0.4", default-features = false, features = [] } "num-traits" = { version = "0.2", default-features = false } "serde" = { version = "1.0", optional = true } "serde_json" = { version = "1.0", optional = true } @@ -8,7 +8,7 @@ extern crate serde_derive; use core::fmt; -use yaxpeax_arch::{Arch, Decoder, LengthedInstruction}; +use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction}; #[allow(non_camel_case_types)] #[derive(Debug, Copy, Clone)] @@ -682,13 +682,13 @@ impl fmt::Display for Instruction { } impl LengthedInstruction for Instruction { - type Unit = <M16C as Arch>::Address; + type Unit = AddressDiff<<M16C as Arch>::Address>; fn min_size() -> Self::Unit { - 1 + AddressDiff::from_const(1) } fn len(&self) -> Self::Unit { - self.length as u32 + AddressDiff::from_const(self.length as u32) } } |