diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-07-06 13:10:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-06 13:10:21 -0700 |
commit | 9455a8749e1bb2c4788c37495b9cd319f046f6ff (patch) | |
tree | da02eadeae89d40f82a1e203b11e581138682129 /src/parsing.h | |
parent | 05d7bd3028793de007043eacc6e73b1c0cedb7ba (diff) | |
parent | fa050b2f9c1e4b68c5067487515d1f67ae9bf9cf (diff) | |
download | binaryen-9455a8749e1bb2c4788c37495b9cd319f046f6ff.tar.gz binaryen-9455a8749e1bb2c4788c37495b9cd319f046f6ff.tar.bz2 binaryen-9455a8749e1bb2c4788c37495b9cd319f046f6ff.zip |
Merge pull request #621 from WebAssembly/spec-update
Spec test update
Diffstat (limited to 'src/parsing.h')
-rw-r--r-- | src/parsing.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parsing.h b/src/parsing.h index f5df77bad..fb9e3547c 100644 --- a/src/parsing.h +++ b/src/parsing.h @@ -127,7 +127,7 @@ inline Expression* parseConst(cashew::IString s, WasmType type, MixedArena& allo ret->value = Literal(negative ? -temp : temp); } else { std::istringstream istr(str); - int32_t temp; + uint32_t temp; istr >> temp; ret->value = Literal(temp); } @@ -143,7 +143,7 @@ inline Expression* parseConst(cashew::IString s, WasmType type, MixedArena& allo ret->value = Literal(negative ? -temp : temp); } else { std::istringstream istr(str); - int64_t temp; + uint64_t temp; istr >> temp; ret->value = Literal(temp); } |