From 89cb24ae1f91132315479475c70a1224a224aab6 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 1 Jun 2017 17:24:12 -0700 Subject: use atoll in getCheckedAddress string parsing --- src/wasm/wasm-s-parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/wasm-s-parser.cpp') diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index a9efae7a7..716355f46 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -44,7 +44,7 @@ int unhex(char c) { namespace wasm { static Address getCheckedAddress(const Element* s, const char* errorText) { - uint64_t num = atoi(s->c_str()); + uint64_t num = atoll(s->c_str()); if (num > std::numeric_limits::max()) { throw ParseException(errorText, s->line, s->col); } -- cgit v1.2.3