diff options
| author | Irfan Hudda <irfanhudda@gmail.com> | 2017-04-20 19:51:38 +0530 |
|---|---|---|
| committer | Irfan Hudda <irfanhudda@gmail.com> | 2017-04-20 19:51:38 +0530 |
| commit | f7bd370818b003f57e47a1894ff0d791ad23628d (patch) | |
| tree | ba425f8e961c3b021ccb45e534436ec1088ae011 | |
| parent | 04e9c20228c38c20c5d4f84328332b2c5c98d5a2 (diff) | |
| download | rust-f7bd370818b003f57e47a1894ff0d791ad23628d.tar.gz rust-f7bd370818b003f57e47a1894ff0d791ad23628d.zip | |
remove redundant wrapping_sub
| -rw-r--r-- | src/libcore/num/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 15ffe9db8ce..bef7a20cd7f 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -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) } } |
