We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255908a commit 4a97441Copy full SHA for 4a97441
src/libcore/num/uint_macros.rs
@@ -89,7 +89,7 @@ impl Rem<$T,$T> for $T {
89
#[cfg(not(test))]
90
impl Neg<$T> for $T {
91
#[inline]
92
- fn neg(&self) -> $T { -*self }
+ fn neg(&self) -> $T { -(*self as $T_SIGNED) as $T }
93
}
94
95
impl Unsigned for $T {}
0 commit comments