diff --git a/src/primitives/address.rs b/src/primitives/address.rs index 8c2b55a..4c895f4 100644 --- a/src/primitives/address.rs +++ b/src/primitives/address.rs @@ -158,3 +158,21 @@ impl Add for Address { Self(self.0.wrapping_add_signed(bytes as _)) } } + +impl Add for Address64 { + type Output = Self; + + #[inline] + fn add(self, bytes: i32) -> Self { + Self(self.0.wrapping_add(bytes as _)) + } +} + +impl Add for Address64 { + type Output = Self; + + #[inline] + fn add(self, bytes: u32) -> Self { + Self(self.0.wrapping_add(bytes as _)) + } +}