summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2016-03-28 15:37:32 +0300
committerJukka Jylänki <jujjyl@gmail.com>2016-03-28 21:40:24 +0300
commit5340abb9ebd1ea73df0c3cf724522510637a9a1c (patch)
treec34eef42e37ea315733b930841a82e9baa04018b /src
parent9da4e6ea0e2631f0643578e8c3603d1f5f825179 (diff)
downloadbinaryen-5340abb9ebd1ea73df0c3cf724522510637a9a1c.tar.gz
binaryen-5340abb9ebd1ea73df0c3cf724522510637a9a1c.tar.bz2
binaryen-5340abb9ebd1ea73df0c3cf724522510637a9a1c.zip
Clean up build warning C4244: 'return': conversion from 'double' to 'uint32_t', possible loss of data in src\support\safe_integer.cpp(40).
Diffstat (limited to 'src')
-rw-r--r--src/support/safe_integer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/safe_integer.cpp b/src/support/safe_integer.cpp
index dbe62ca52..39c7ee2d0 100644
--- a/src/support/safe_integer.cpp
+++ b/src/support/safe_integer.cpp
@@ -36,7 +36,7 @@ bool wasm::isSInteger32(double x) {
uint32_t wasm::toUInteger32(double x) {
assert(isUInteger32(x));
return x < std::numeric_limits<uint32_t>::max()
- ? x
+ ? (uint32_t)x
: std::numeric_limits<uint32_t>::max();
}