summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-04 21:03:47 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-04 21:03:47 -0800
commit578461d1ad4fe34235f67016d703f568fdf92c6a (patch)
treea236b62b611713ca408ff1ca0cf3f20eabbd5e45 /src/wasm.h
parent8bc2c03d245df4eab03f6545d55a9f2d34c261a3 (diff)
downloadbinaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.tar.gz
binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.tar.bz2
binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.zip
numeric fixes
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index f7f6ce6b5..2c78182f8 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -117,7 +117,7 @@ struct Literal {
bool operator==(Literal& other) {
if (type != other.type) return false;
if (type == none) return true;
- if (type == i32 || type == f32) return i32 == other.i32;
+ if (type == WasmType::i32 || type == WasmType::f32) return i32 == other.i32;
return i64 == other.i64;
}