remove redundant wrapping_sub
This commit is contained in:
parent
04e9c20228
commit
f7bd370818
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue