Skip to content

Commit

Permalink
Changed ShrAssign to i8 from usize
Browse files Browse the repository at this point in the history
  • Loading branch information
1Git2Clone committed Nov 17, 2024
1 parent 67c68ab commit 041e87b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/gcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use num_traits::PrimInt;

pub trait Gcd
where
Self: PrimInt + ShrAssign<usize> + SubAssign,
Self: PrimInt + ShrAssign<i8> + SubAssign,
{
/// NOTE: Exists for the internal LCM implementation.
#[deprecated(note = "use crate::utils::gcd::Gcd::gcd() instead.")]
Expand All @@ -24,7 +24,7 @@ where
swap(&mut self, &mut other)
}
other -= self;
other >>= other.trailing_zeros() as usize;
other >>= other.trailing_zeros() as i8;
}

self << k
Expand Down

0 comments on commit 041e87b

Please sign in to comment.