From c9ebb2e4f469831d0db0b8e14ac74778380ab3dd Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 28 Mar 2016 11:00:06 -0700 Subject: remove bogus asserts from safe_integer casts --- src/support/safe_integer.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/support/safe_integer.cpp b/src/support/safe_integer.cpp index dbe62ca52..191296e1e 100644 --- a/src/support/safe_integer.cpp +++ b/src/support/safe_integer.cpp @@ -34,14 +34,12 @@ bool wasm::isSInteger32(double x) { } uint32_t wasm::toUInteger32(double x) { - assert(isUInteger32(x)); return x < std::numeric_limits::max() ? x : std::numeric_limits::max(); } int32_t wasm::toSInteger32(double x) { - assert(isSInteger32(x)); return x > std::numeric_limits::min() && x < std::numeric_limits::max() ? x @@ -59,14 +57,12 @@ bool wasm::isSInteger64(double x) { } uint64_t wasm::toUInteger64(double x) { - assert(isUInteger64(x)); return x < (double)std::numeric_limits::max() ? (uint64_t)x : std::numeric_limits::max(); } int64_t wasm::toSInteger64(double x) { - assert(isSInteger64(x)); return x > (double)std::numeric_limits::min() && x < (double)std::numeric_limits::max() ? (int64_t)x -- cgit v1.2.3