summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-08 14:59:55 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-08 14:59:55 -0800
commitc2dc40d42a0f88465861f0fc26a5f47552970e58 (patch)
treef540fd7a4a8bda79ca2595d921da71deb5b91d0d /src
parent504b1a981cf6d0d560a1160b106a1b49eaea4cd7 (diff)
downloadbinaryen-c2dc40d42a0f88465861f0fc26a5f47552970e58.tar.gz
binaryen-c2dc40d42a0f88465861f0fc26a5f47552970e58.tar.bz2
binaryen-c2dc40d42a0f88465861f0fc26a5f47552970e58.zip
fix printing
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 a8a6b8149..9ed89df55 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -154,7 +154,7 @@ struct Literal {
uint32_t ll;
} u;
u.ff = f;
- o << "nan:" << std::hex << u.ll;
+ o << "nan:" << std::hex << u.ll << std::dec;
return;
}
printDouble(o, f);
@@ -171,7 +171,7 @@ struct Literal {
uint64_t ll;
} u;
u.dd = d;
- o << "nan:" << std::hex << u.ll;
+ o << "nan:" << std::hex << u.ll << std::dec;
return;
}
const char *text = cashew::JSPrinter::numToString(d);