diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-22 19:36:38 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-22 19:36:38 -0800 |
commit | 125f085cb5d28e75635844f1b72b8b3ce82b314c (patch) | |
tree | 09762f09433d63349e52abaad7af7f276201aa84 /src | |
parent | fe912e2582e7589a890f3c1a317252e8d2738a2c (diff) | |
download | binaryen-125f085cb5d28e75635844f1b72b8b3ce82b314c.tar.gz binaryen-125f085cb5d28e75635844f1b72b8b3ce82b314c.tar.bz2 binaryen-125f085cb5d28e75635844f1b72b8b3ce82b314c.zip |
fix parsing of large offsets in 32-bit
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-s-parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index a286e5af8..55b4a20aa 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -744,7 +744,7 @@ private: if (str[0] == 'a') { ret->align = atoi(eq); } else if (str[0] == 'o') { - uint64_t offset = atol(eq); + uint64_t offset = atoll(eq); if (offset > 0xffffffff) onError(); ret->offset = offset; } else onError(); |