From 041e87b11ac4eaaf5fb45ecd14fcd7729edb4241 Mon Sep 17 00:00:00 2001 From: 1Kill2Steal <171241044+1Git2Clone@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:04:29 +0200 Subject: [PATCH] Changed ShrAssign to i8 from usize --- src/utils/gcd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/gcd.rs b/src/utils/gcd.rs index 034f854..121eebd 100644 --- a/src/utils/gcd.rs +++ b/src/utils/gcd.rs @@ -7,7 +7,7 @@ use num_traits::PrimInt; pub trait Gcd where - Self: PrimInt + ShrAssign + SubAssign, + Self: PrimInt + ShrAssign + SubAssign, { /// NOTE: Exists for the internal LCM implementation. #[deprecated(note = "use crate::utils::gcd::Gcd::gcd() instead.")] @@ -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