From 05684cead0dfa8c553d1bed38a5b8746b45e0dec Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 5 Dec 2015 13:13:55 -0800 Subject: fix asm doubles in wasm2asm --- src/wasm2asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm2asm.h b/src/wasm2asm.h index 5003dee7f..2b7d6a455 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -679,7 +679,7 @@ Ref Wasm2AsmBuilder::processFunctionBody(Expression* curr, IString result) { ret[2]->push_back(ValueBuilder::makeDouble(curr->value.f32)); return ret; } - case f64: return ValueBuilder::makeDouble(curr->value.f64); + case f64: return ValueBuilder::makeUnary(PLUS, ValueBuilder::makeDouble(curr->value.f64)); default: abort(); } } -- cgit v1.2.3