summaryrefslogtreecommitdiff
path: root/dhall/src/syntax
diff options
context:
space:
mode:
authorNadrieril2019-12-22 18:38:05 +0000
committerNadrieril2019-12-22 18:38:05 +0000
commit54d7e61ad40682ee24e36288980ee4164ea87c34 (patch)
tree29c2fa76d225fee479a748b5dbdca0f9bb8a4acc /dhall/src/syntax
parentfa6de4c077ab4f1c28d2ec64a33a3be8c5a9bb1c (diff)
Update dhall-lang submodule
Diffstat (limited to 'dhall/src/syntax')
-rw-r--r--dhall/src/syntax/text/printer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhall/src/syntax/text/printer.rs b/dhall/src/syntax/text/printer.rs
index 78942ed..dff3479 100644
--- a/dhall/src/syntax/text/printer.rs
+++ b/dhall/src/syntax/text/printer.rs
@@ -322,6 +322,8 @@ impl Display for NaiveDouble {
f.write_str("-Infinity")
} else if v.is_nan() {
f.write_str("NaN")
+ } else if v == 0.0 && v.is_sign_negative() {
+ f.write_str("-0.0")
} else {
let s = format!("{}", v);
if s.contains('e') || s.contains('.') {