From 3f61f46ef2e660ad8001d2dd93218c1e830188c8 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 14 Jan 2016 17:01:08 -0800 Subject: fix type of const values from binary --- src/wasm-binary.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 59e5115dd..99a68cf12 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1404,6 +1404,7 @@ public: case BinaryConsts::F64Const: curr->value.f64 = getFloat64(); curr->type = f64; break; default: return false; } + curr->value.type = curr->type; if (debug) std::cerr << "zz node: Const" << std::endl; return true; } -- cgit v1.2.3