diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-06 21:10:22 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-07 08:17:05 -0700 |
| commit | 4a974413dcce8a5a9f1df3d58503c63b8f5b556a (patch) | |
| tree | f0a8e66c0c2c1d912ebdb40c7b83d78c6fe05b82 /src/libcore | |
| parent | 255908ac953acb868ba7ee0c0cbfb8ae0cc3e44d (diff) | |
| download | rust-4a974413dcce8a5a9f1df3d58503c63b8f5b556a.tar.gz rust-4a974413dcce8a5a9f1df3d58503c63b8f5b556a.zip | |
core: Fix an unsigned negation warning
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/num/uint_macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/uint_macros.rs b/src/libcore/num/uint_macros.rs index a53388bd0e3..092f7d81d22 100644 --- a/src/libcore/num/uint_macros.rs +++ b/src/libcore/num/uint_macros.rs @@ -89,7 +89,7 @@ impl Rem<$T,$T> for $T { #[cfg(not(test))] impl Neg<$T> for $T { #[inline] - fn neg(&self) -> $T { -*self } + fn neg(&self) -> $T { -(*self as $T_SIGNED) as $T } } impl Unsigned for $T {} |
