diff options
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 << ')'; |