aboutsummaryrefslogtreecommitdiff
path: root/src/armv7.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/armv7.rs')
-rw-r--r--src/armv7.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/armv7.rs b/src/armv7.rs
index 3fe4df6..3029cc3 100644
--- a/src/armv7.rs
+++ b/src/armv7.rs
@@ -7,7 +7,7 @@
use std::fmt::{self, Display, Formatter};
-use yaxpeax_arch::{Arch, Colorize, Decoder, LengthedInstruction, NoColors, ShowContextual, YaxColors};
+use yaxpeax_arch::{Arch, AddressDiff, Colorize, Decoder, LengthedInstruction, NoColors, ShowContextual, YaxColors};
pub struct ConditionedOpcode(pub Opcode, pub bool, pub ConditionCode);
@@ -1254,12 +1254,12 @@ impl Display for Instruction {
}
impl LengthedInstruction for Instruction {
- type Unit = <ARMv7 as Arch>::Address;
+ type Unit = AddressDiff<<ARMv7 as Arch>::Address>;
fn min_size() -> Self::Unit {
- 4
+ AddressDiff::from_const(4)
}
fn len(&self) -> Self::Unit {
- 4
+ AddressDiff::from_const(4)
}
}