Skip to content

Commit

Permalink
Rollup merge of #61647 - JohnTitor:use-stable-func, r=Centril
Browse files Browse the repository at this point in the history
Use stable wrappers in f32/f64::signum

Fixes #61638

r? @Centril
  • Loading branch information
Centril authored Jun 8, 2019
2 parents 96a8050 + 43ab14e commit b3bdc24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libstd/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl f32 {
if self.is_nan() {
NAN
} else {
unsafe { intrinsics::copysignf32(1.0, self) }
1.0_f32.copysign(self)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/libstd/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl f64 {
if self.is_nan() {
NAN
} else {
unsafe { intrinsics::copysignf64(1.0, self) }
1.0_f64.copysign(self)
}
}

Expand Down

0 comments on commit b3bdc24

Please sign in to comment.