From 4d566bd9c9084cb57adc9d206cac612bec02c63c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 31 Oct 2015 20:46:12 -0700 Subject: fix interpreter bugs in binary and compare; working add test in wasm polyfill --- src/wasm-interpreter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm-interpreter.h') diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 2fcda535f..4733f5b90 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -226,7 +226,7 @@ public: Flow flow = visit(curr->left); if (flow.breaking()) return flow; Literal left = flow.value; - flow = visit(curr->left); + flow = visit(curr->right); if (flow.breaking()) return flow; Literal right = flow.value; switch (curr->op) { // lmao @@ -255,7 +255,7 @@ public: Flow flow = visit(curr->left); if (flow.breaking()) return flow; Literal left = flow.value; - flow = visit(curr->left); + flow = visit(curr->right); if (flow.breaking()) return flow; Literal right = flow.value; switch (curr->op) { // :) -- cgit v1.2.3