Skip to content

Commit

Permalink
chore: split compiler.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Apr 7, 2024
1 parent 9819d99 commit 82d98c9
Show file tree
Hide file tree
Showing 10 changed files with 3,668 additions and 3,666 deletions.
4 changes: 2 additions & 2 deletions crates/revm-jit-context/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ impl EvmWord {
#[inline]
pub const fn from_u256(value: U256) -> Self {
#[cfg(target_endian = "little")]
return unsafe { core::mem::transmute(value) };
return unsafe { core::mem::transmute::<U256, Self>(value) };
#[cfg(target_endian = "big")]
return Self(value.to_be_bytes());
}
Expand Down Expand Up @@ -609,7 +609,7 @@ impl EvmWord {
#[inline]
pub const fn into_u256(self) -> U256 {
#[cfg(target_endian = "little")]
return unsafe { core::mem::transmute(self) };
return unsafe { core::mem::transmute::<Self, U256>(self) };
#[cfg(target_endian = "big")]
return U256::from_be_bytes(self.0);
}
Expand Down
Loading

0 comments on commit 82d98c9

Please sign in to comment.