summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm-s-parser.h4
-rw-r--r--src/wasm.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index fb72d5232..fbcf9fcbc 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -495,7 +495,7 @@ private:
ret->signed_ = extra[0] && extra[1] == 's';
size_t i = 1;
ret->offset = 0;
- ret->align = -1;
+ ret->align = 0;
while (!s[i]->isList()) {
const char *str = s[i]->c_str();
const char *eq = strchr(str, '=');
@@ -526,7 +526,7 @@ private:
}
size_t i = 1;
ret->offset = 0;
- ret->align = -1;
+ ret->align = 0;
while (!s[i]->isList()) {
const char *str = s[i]->c_str();
const char *eq = strchr(str, '=');
diff --git a/src/wasm.h b/src/wasm.h
index d539b09fd..6655a167e 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -489,7 +489,7 @@ public:
unsigned bytes;
bool signed_;
- int offset;
+ uint32_t offset;
unsigned align;
Expression *ptr;
@@ -524,7 +524,7 @@ public:
Store() : Expression(StoreId) {}
unsigned bytes;
- int offset;
+ uint32_t offset;
unsigned align;
Expression *ptr, *value;