summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h
index e3724c612..5fd4ad53b 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -193,7 +193,7 @@ struct Literal {
uint32_t ll;
} u;
u.ff = f;
- o << "nan:" << std::hex << u.ll << std::dec;
+ o << "nan:0x" << std::hex << u.ll << std::dec;
return;
}
printDouble(o, f);
@@ -210,7 +210,7 @@ struct Literal {
uint64_t ll;
} u;
u.dd = d;
- o << "nan:" << std::hex << u.ll << std::dec;
+ o << "nan:0x" << std::hex << u.ll << std::dec;
return;
}
if (!std::isfinite(d)) {