summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-05-03 14:01:32 -0700
committeriximeow <me@iximeow.net>2020-05-03 14:01:32 -0700
commitf9997b4acafada6d19090f319a176f4a9d022f83 (patch)
treea17d5b5842ad2d93e9d35e21e1167d3ae64cedfe
parenta5b6a2bb16e47686b260f6c91f0eed06538e586b (diff)
version bump, bumping yaxpeax-arch to 0.0.40.0.3
-rw-r--r--Cargo.toml4
-rw-r--r--src/lib.rs8
2 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 90baa80..0db9999 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,14 +1,14 @@
[package]
name = "yaxpeax-mips"
-version = "0.0.2"
+version = "0.0.3"
authors = [ "iximeow <me@iximeow.net>" ]
license = "0BSD"
repository = "http://git.iximeow.net/yaxpeax-mips/"
description = "mips decoders for the yaxpeax project"
[dependencies]
-yaxpeax-arch = { version = "0.0.3", default-features = false, features = [] }
+yaxpeax-arch = { version = "0.0.4", default-features = false, features = [] }
"termion" = "1.4.0"
"serde" = { version = "1.0", optional = true }
"serde_derive" = { version = "1.0", optional = true }
diff --git a/src/lib.rs b/src/lib.rs
index e83a8b0..074d660 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,7 +7,7 @@ use std::mem;
use num_enum::IntoPrimitive;
-use yaxpeax_arch::{Arch, Decoder, LengthedInstruction};
+use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction};
mod display;
@@ -88,13 +88,13 @@ impl yaxpeax_arch::Instruction for Instruction {
}
impl LengthedInstruction for Instruction {
- type Unit = u32;
+ type Unit = AddressDiff<u32>;
fn min_size() -> Self::Unit {
- 4
+ AddressDiff::from_const(4)
}
fn len(&self) -> Self::Unit {
- 4
+ AddressDiff::from_const(4)
}
}