From 9b7b1ed686377575169e26e0127f02722a16b0dd Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 3 May 2020 14:00:41 -0700 Subject: version bump, bumping yaxpeax-arch to 0.0.4 --- Cargo.toml | 4 ++-- src/lib.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1ae5b58..0b07a55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } diff --git a/src/lib.rs b/src/lib.rs index 00a54f5..a1f98ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 = ::Address; + type Unit = AddressDiff<::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) } } -- cgit v1.1