This commit is contained in:
Quaternions 2024-09-17 15:10:07 -07:00
parent 665d528b87
commit 934475b959

View File

@ -536,7 +536,7 @@ macro_rules! impl_fix_rhs_lt_lhs_not_const_generic{
paste::item!{
#[inline]
pub fn [<fix_ $rhs>](self)->Fixed<$rhs,{$rhs*32}>{
Fixed::from_bits(bnum::cast::As::as_::<BInt::<$rhs>>(self.bits).shr(($lhs-$rhs)*32))
Fixed::from_bits(bnum::cast::As::as_::<BInt::<$rhs>>(self.bits.shr(($lhs-$rhs)*32)))
}
}
}