Skip to content

Commit

Permalink
revert: use div_mod_floor instead of div_rem
Browse files Browse the repository at this point in the history
  • Loading branch information
whichqua committed Nov 27, 2024
1 parent 3ec48e7 commit dc3bf18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub fn compute_ids_high_low(
return Err(HintError::ValueOutside250BitRange(Box::new(value)));
}

let (high, low) = value.div_mod_floor(&shift.try_into().map_err(|_| MathError::DividedByZero)?);
let (high, low) = value.div_rem(&shift.try_into().map_err(|_| MathError::DividedByZero)?);
insert_value_from_var_name("high", high, vm, ids_data, ap_tracking)?;
insert_value_from_var_name("low", low, vm, ids_data, ap_tracking)?;
Ok(())
Expand Down

0 comments on commit dc3bf18

Please sign in to comment.