From d93ca9e91e89e6ca9dc3c974e6dfd3329a3d4f17 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 30 Oct 2015 10:54:13 -0700 Subject: fix printing of large negatives --- src/wasm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm.h') 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 << ')'; -- cgit v1.2.3