Skip to content

Commit 3cd7230

Browse files
committed
fix compiler error where $UInt was used in place of $Uint
1 parent ddaa511 commit 3cd7230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/nonzero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ macro_rules! nonzero_integer {
666666
// and self.leading_zeros() is always < $INT::BITS since
667667
// at least one of the bits in the number is not zero
668668
unsafe {
669-
let bit = (((1 as $UInt) << (<$UInt>::BITS - 1)).unchecked_shr(self.leading_zeros()));
669+
let bit = (((1 as $Uint) << (<$Uint>::BITS - 1)).unchecked_shr(self.leading_zeros()));
670670
NonZero::new_unchecked(bit as $Int)
671671
}
672672
}

0 commit comments

Comments
 (0)