Rollup merge of #61647 - JohnTitor:use-stable-func, r=Centril

Use stable wrappers in f32/f64::signum

Fixes #61638

r? @Centril
This commit is contained in:
Mazdak Farrokhzad 2019-06-08 03:34:02 +02:00 committed by GitHub
commit b3bdc24a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -188,7 +188,7 @@ impl f32 {
if self.is_nan() {
NAN
} else {
unsafe { intrinsics::copysignf32(1.0, self) }
1.0_f32.copysign(self)
}
}

View file

@ -166,7 +166,7 @@ impl f64 {
if self.is_nan() {
NAN
} else {
unsafe { intrinsics::copysignf64(1.0, self) }
1.0_f64.copysign(self)
}
}