summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index a2a92c57d..e55ce9af1 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -278,7 +278,7 @@ public:
}
Expression* parseExpression(Element& s) {
- if (debug) std::cerr << "parse expression " << s << '\n';
+ //if (debug) std::cerr << "parse expression " << s << '\n';
IString id = s[0]->str();
const char *str = id.str;
const char *dot = strchr(str, '.');
@@ -584,6 +584,10 @@ private:
assert(extra[1] == '6');
ret->bytes = 2;
extra += 2;
+ } else if (extra[0] == '3') {
+ assert(extra[1] == '2');
+ ret->bytes = 4;
+ extra += 2;
}
ret->signed_ = extra[0] && extra[1] == 's';
size_t i = 1;
@@ -617,6 +621,10 @@ private:
assert(extra[1] == '6');
ret->bytes = 2;
extra += 2;
+ } else if (extra[0] == '3') {
+ assert(extra[1] == '2');
+ ret->bytes = 4;
+ extra += 2;
}
size_t i = 1;
ret->offset = 0;