Index: src/wasm/wasm-macro-gen.h |
diff --git a/src/wasm/wasm-macro-gen.h b/src/wasm/wasm-macro-gen.h |
index b8430f12919d6693222dd9eab4fdac06fa7f6c08..931ad92373c854a7a6f5914f315b0e215dd36b8d 100644 |
--- a/src/wasm/wasm-macro-gen.h |
+++ b/src/wasm/wasm-macro-gen.h |
@@ -372,15 +372,16 @@ class LocalDeclEncoder { |
static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 8), \ |
static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 16), \ |
static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 24) |
-#define WASM_F64(val) \ |
- kExprF64Const, static_cast<byte>(bit_cast<uint64_t>(val)), \ |
- static_cast<byte>(bit_cast<uint64_t>(val) >> 8), \ |
- static_cast<byte>(bit_cast<uint64_t>(val) >> 16), \ |
- static_cast<byte>(bit_cast<uint64_t>(val) >> 24), \ |
- static_cast<byte>(bit_cast<uint64_t>(val) >> 32), \ |
- static_cast<byte>(bit_cast<uint64_t>(val) >> 40), \ |
- static_cast<byte>(bit_cast<uint64_t>(val) >> 48), \ |
- static_cast<byte>(bit_cast<uint64_t>(val) >> 56) |
+#define WASM_F64(val) \ |
+ kExprF64Const, \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val))), \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 8), \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 16), \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 24), \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 32), \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 40), \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 48), \ |
+ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 56) |
#define WASM_GET_LOCAL(index) kExprGetLocal, static_cast<byte>(index) |
#define WASM_SET_LOCAL(index, val) val, kExprSetLocal, static_cast<byte>(index) |
#define WASM_TEE_LOCAL(index, val) val, kExprTeeLocal, static_cast<byte>(index) |