remove redundant wrapping_sub

This commit is contained in:
Irfan Hudda 2017-04-20 19:51:38 +05:30
parent 04e9c20228
commit f7bd370818

View file

@ -2348,7 +2348,7 @@ macro_rules! uint_impl {
if self == 0 {
1
} else {
one << (bits - self.wrapping_sub(one).leading_zeros() as usize)
one << (bits - (self - one).leading_zeros() as usize)
}
}