diff options
| author | Lokathor <zefria@gmail.com> | 2019-02-01 01:50:11 -0700 |
|---|---|---|
| committer | Lokathor <zefria@gmail.com> | 2019-02-01 01:50:11 -0700 |
| commit | 26a354065c94c107a8fb98f1a48d730aa0502dbb (patch) | |
| tree | fb3631349050b14e091fbdc79838b3be2165bd1c /src | |
| parent | 2f5d2455a43203bce98a808b8687798199f4f815 (diff) | |
| download | rust-26a354065c94c107a8fb98f1a48d730aa0502dbb.tar.gz rust-26a354065c94c107a8fb98f1a48d730aa0502dbb.zip | |
Don't know why I wasn't using `self` properly there
Diffstat (limited to 'src')
| -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 81aec346c93..16364faa800 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -1530,7 +1530,7 @@ assert_eq!(", stringify!($SelfT), "::MIN.overflowing_neg(), (", stringify!($Self #[inline] #[stable(feature = "wrapping", since = "1.7.0")] pub const fn overflowing_neg(self) -> (Self, bool) { - ((self ^ -1).wrapping_add(1), s == $SelfT::min_value()) + ((self ^ -1).wrapping_add(1), self == Self::min_value()) } } |
