Skip to content

Commit 60fb612

Browse files
committed
Allow trivial_numeric_casts in Uint::const_div_rem
Casts to `Word` are causing issues on 32-bit platforms
1 parent 92d231a commit 60fb612

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uint/div.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ impl<const LIMBS: usize> Uint<LIMBS> {
4848
/// the value for is_some needs to be checked before using `q` and `r`.
4949
///
5050
/// This function is constant-time with respect to both `self` and `rhs`.
51+
#[allow(trivial_numeric_casts)]
5152
pub(crate) const fn const_div_rem(&self, rhs: &Self) -> (Self, Self, CtChoice) {
5253
let mb = rhs.bits();
5354
let mut rem = *self;

0 commit comments

Comments
 (0)