core: Fix an unsigned negation warning
This commit is contained in:
parent
255908ac95
commit
4a974413dc
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user