diff options
author | Sam Clegg <sbc@chromium.org> | 2017-06-09 18:55:37 -0700 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-06-09 18:57:29 -0700 |
commit | 22e06c81bbf5c6f717a1e4873725f9cc466dfbfc (patch) | |
tree | 89f39c231a0d1db2683995b83ac74a3ac75bc41b /src/wasm/literal.cpp | |
parent | df58435d385ddf49c501eafd4e324ebe0caa8cbb (diff) | |
download | binaryen-22e06c81bbf5c6f717a1e4873725f9cc466dfbfc.tar.gz binaryen-22e06c81bbf5c6f717a1e4873725f9cc466dfbfc.tar.bz2 binaryen-22e06c81bbf5c6f717a1e4873725f9cc466dfbfc.zip |
Output inf/-inf rather than infinity/-infinity
wast2wasm wes recently updated to only support the
former: https://github.com/WebAssembly/wabt/pull/482
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); |