diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/toml/src/macros.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/toml/src/macros.rs b/vendor/toml/src/macros.rs index d86cc52f5..a29597006 100644 --- a/vendor/toml/src/macros.rs +++ b/vendor/toml/src/macros.rs @@ -198,15 +198,15 @@ macro_rules! toml_internal { }}; (@value (-nan)) => { - $crate::Value::Float(-::std::f64::NAN) + $crate::Value::Float(::std::f64::NAN.copysign(-1.0)) }; (@value (nan)) => { - $crate::Value::Float(::std::f64::NAN) + $crate::Value::Float(::std::f64::NAN.copysign(1.0)) }; (@value nan) => { - $crate::Value::Float(::std::f64::NAN) + $crate::Value::Float(::std::f64::NAN.copysign(1.0)) }; (@value (-inf)) => { |