diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 21:03:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 21:03:47 -0800 |
commit | 578461d1ad4fe34235f67016d703f568fdf92c6a (patch) | |
tree | a236b62b611713ca408ff1ca0cf3f20eabbd5e45 /src/wasm-s-parser.h | |
parent | 8bc2c03d245df4eab03f6545d55a9f2d34c261a3 (diff) | |
download | binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.tar.gz binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.tar.bz2 binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.zip |
numeric fixes
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index e35f081c4..7747e1a97 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -499,7 +499,9 @@ private: case i32: { int32_t temp; if (str[0] == '0' && str[1] == 'x') { - istr >> std::hex >> temp; + uint32_t temp2; + istr >> std::hex >> temp2; + temp = temp2; } else { istr >> temp; } @@ -509,7 +511,9 @@ private: case i64: { int64_t temp; if (str[0] == '0' && str[1] == 'x') { - istr >> std::hex >> temp; + uint64_t temp2; + istr >> std::hex >> temp2; + temp = temp2; } else { istr >> temp; } |