diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 10:54:13 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 10:54:13 -0700 |
commit | d93ca9e91e89e6ca9dc3c974e6dfd3329a3d4f17 (patch) | |
tree | 1546e1f7f870390f51675b90f0afe485c5d991f3 /src/wasm.h | |
parent | 1f3825ea4fd717de015705651b9911a47751f13c (diff) | |
download | binaryen-d93ca9e91e89e6ca9dc3c974e6dfd3329a3d4f17.tar.gz binaryen-d93ca9e91e89e6ca9dc3c974e6dfd3329a3d4f17.tar.bz2 binaryen-d93ca9e91e89e6ca9dc3c974e6dfd3329a3d4f17.zip |
fix printing of large negatives
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h index 5e8b7a212..f66f8bb8c 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -172,8 +172,8 @@ struct Literal { case none: abort(); case BasicType::i32: o << i32; break; case BasicType::i64: o << i64; break; - case BasicType::f32: o << f32; break; - case BasicType::f64: o << f64; break; + case BasicType::f32: o << JSPrinter::numToString(f32); break; + case BasicType::f64: o << JSPrinter::numToString(f64); break; } restoreNormalColor(o); o << ')'; |