diff options
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r-- | src/wasm/literal.cpp | 2 |
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); |