diff options
Diffstat (limited to 'vendor/libm/src/math/copysign.rs')
-rw-r--r-- | vendor/libm/src/math/copysign.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/libm/src/math/copysign.rs b/vendor/libm/src/math/copysign.rs index 1527fb6ea..1f4a35a33 100644 --- a/vendor/libm/src/math/copysign.rs +++ b/vendor/libm/src/math/copysign.rs @@ -2,6 +2,7 @@ /// /// Constructs a number with the magnitude (absolute value) of its /// first argument, `x`, and the sign of its second argument, `y`. +#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] pub fn copysign(x: f64, y: f64) -> f64 { let mut ux = x.to_bits(); let uy = y.to_bits(); |