summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm/literal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index 1cc083220..d6d7848d0 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -145,7 +145,7 @@ void Literal::printDouble(std::ostream& o, double d) {
return;
}
if (!std::isfinite(d)) {
- o << (std::signbit(d) ? "-infinity" : "infinity");
+ o << (std::signbit(d) ? "-inf" : "inf");
return;
}
const char* text = cashew::JSPrinter::numToString(d);