From a6c00e1fee1a840902cb10e715e2571e824666fa Mon Sep 17 00:00:00 2001 From: Jukka Jylänki Date: Mon, 28 Mar 2016 15:56:33 +0300 Subject: Also clean up Visual Studio build warning in wasm::toSInteger32 for double->int32_t cast. --- src/support/safe_integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/support/safe_integer.cpp') diff --git a/src/support/safe_integer.cpp b/src/support/safe_integer.cpp index 39c7ee2d0..a596f871c 100644 --- a/src/support/safe_integer.cpp +++ b/src/support/safe_integer.cpp @@ -44,7 +44,7 @@ int32_t wasm::toSInteger32(double x) { assert(isSInteger32(x)); return x > std::numeric_limits::min() && x < std::numeric_limits::max() - ? x + ? (int32_t)x : (x < 0 ? std::numeric_limits::min() : std::numeric_limits::max()); } -- cgit v1.2.3