Skip to content

Commit

Permalink
fixed clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
quangvdao committed Sep 1, 2024
1 parent 1c0fbe1 commit 7f470bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jolt-core/src/jolt/instruction/sra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<const WORD_SIZE: usize> JoltInstruction for SRAInstruction<WORD_SIZE> {
fn lookup_entry(&self) -> u64 {
if WORD_SIZE == 32 {
let x = self.0 as i32;
let y = (self.1 as u32 % 32) as u32;
let y = self.1 as u32 % 32;
(x.wrapping_shr(y) as u32).into()
} else if WORD_SIZE == 64 {
let x = self.0 as i64;
Expand Down

0 comments on commit 7f470bf

Please sign in to comment.