summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2016-03-28 15:11:36 +0300
committerJukka Jylänki <jujjyl@gmail.com>2016-03-28 21:40:15 +0300
commit77b998fc2711a1f46e699d581c50a6cf9d50c7c2 (patch)
treebb2dfc6ba75cea8f7d6d4b3145f0f9bc240b44ae
parent1c915b86558f32cfceaa8331bc26f5f17624c198 (diff)
downloadbinaryen-77b998fc2711a1f46e699d581c50a6cf9d50c7c2.tar.gz
binaryen-77b998fc2711a1f46e699d581c50a6cf9d50c7c2.tar.bz2
binaryen-77b998fc2711a1f46e699d581c50a6cf9d50c7c2.zip
Hide Visual Studio build warning on casting 64-bit int to 32-bit when we know it is safe to do so.
-rw-r--r--src/wasm-s-parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index 965336857..4c22fb1e3 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -826,7 +826,7 @@ private:
} else if (str[0] == 'o') {
uint64_t offset = atoll(eq);
if (offset > 0xffffffff) onError();
- ret->offset = offset;
+ ret->offset = (uint32_t)offset;
} else onError();
i++;
}