| Index: test/cctest/wasm/test-run-wasm.cc
|
| diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc
|
| index 7f81cfef544c5e745a007fea529ea70b82561746..8b83a90ec29fe93a86ebcaeaedc64b9586523797 100644
|
| --- a/test/cctest/wasm/test-run-wasm.cc
|
| +++ b/test/cctest/wasm/test-run-wasm.cc
|
| @@ -2760,7 +2760,8 @@ WASM_EXEC_TEST(I32UConvertF32) {
|
| BUILD(r, WASM_I32_UCONVERT_F32(WASM_GET_LOCAL(0)));
|
|
|
| FOR_FLOAT32_INPUTS(i) {
|
| - if (*i < (static_cast<float>(UINT32_MAX) + 1.0) && *i > -1) {
|
| + if (*i < (static_cast<float>(static_cast<uint64_t>(UINT32_MAX) + 1)) &&
|
| + *i > -1) {
|
| CHECK_EQ(static_cast<uint32_t>(*i), r.Call(*i));
|
| } else {
|
| CHECK_TRAP32(r.Call(*i));
|
|
|