From dce3791b402cc1e49da000cfe918bb21e81b4a6a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 30 Oct 2015 16:47:22 -0700 Subject: fix double compares --- src/asm2wasm.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/asm2wasm.cpp') diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp index 609909ab8..b02b4aa52 100644 --- a/src/asm2wasm.cpp +++ b/src/asm2wasm.cpp @@ -780,6 +780,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) { ret->op = relational; ret->left = process(ast[2]); ret->right = process(ast[3]); + ret->inputType = ret->left->type; return ret; } } else if (what == NUM) { @@ -899,6 +900,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) { ret->op = Eq; ret->left = process(ast[2]); ret->right = allocator.alloc()->set(Literal(0)); + ret->inputType = ret->left->type; return ret; } abort_on("bad unary", ast); -- cgit v1.2.3