Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jan 13, 2025
1 parent 5be1d09 commit 6fa2148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulley/src/interp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,7 @@ impl OpVisitor for Interpreter<'_> {
// Decrement the stack pointer `amt` bytes plus 2 pointers more for
// fp/lr.
let ptr_size = size_of::<usize>();
let full_amt = usize::try_from(amt).unwrap() + 2 * ptr_size;
let full_amt = usize::from(amt) + 2 * ptr_size;
let new_sp = self.state[XReg::sp].get_ptr::<u8>().wrapping_sub(full_amt);
self.set_sp::<crate::PushFrameSave>(new_sp)?;

Expand Down

0 comments on commit 6fa2148

Please sign in to comment.