summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck.py1
-rw-r--r--src/wasm-interpreter.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/check.py b/check.py
index 735ba01c7..f901fb807 100755
--- a/check.py
+++ b/check.py
@@ -82,6 +82,7 @@ print '\n[ checking wasm-shell spec testcases... ]\n'
if len(requested) == 0:
#spec_tests = [] # XXX [os.path.join('spec', t) for t in sorted(os.listdir(os.path.join('test', 'spec')))]
# 'address' : filed issue, test looks invalid
+ # 'exports' : has a "return" https://github.com/WebAssembly/spec/issues/164
spec_tests = [os.path.join('spec', t + '.wast') for t in ['conversions', 'endianness']]
else:
spec_tests = requested[:]
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 885835be1..2ac461a93 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -405,7 +405,7 @@ public:
default: abort();
}
} else if (left.type == f32) {
- float l = left.getf64(), r = right.getf64();
+ float l = left.getf32(), r = right.getf32();
switch (curr->op) {
case Eq: return Flow(Literal(l == r));
case Ne: return Flow(Literal(l != r));