summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-12 12:13:38 -0500
committerAlon Zakai <alonzakai@gmail.com>2015-12-12 12:13:38 -0500
commit5b97dfbf7cd4ecffbde111020f992b2c7a9bd03a (patch)
tree2cbd757c809bb113562573fd62967541a9414517 /src
parentb330c295d6ca2b2787bf99f0e036b3a46f9e4448 (diff)
downloadbinaryen-5b97dfbf7cd4ecffbde111020f992b2c7a9bd03a.tar.gz
binaryen-5b97dfbf7cd4ecffbde111020f992b2c7a9bd03a.tar.bz2
binaryen-5b97dfbf7cd4ecffbde111020f992b2c7a9bd03a.zip
fix s2wasm load
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index e6991e103..d39ed3b71 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -363,7 +363,8 @@ private:
curr->type = type;
int32_t bytes = getInt();
curr->bytes = bytes > 0 ? bytes : getWasmTypeSize(type);
- curr->signed_ = match("_u");
+ curr->signed_ = match("_s");
+ match("_u");
Name assign = getAssign();
curr->offset = getInt();
curr->align = curr->bytes; // XXX