summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm-interpreter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm-interpreter.c b/src/wasm-interpreter.c
index 8f45831d..efba3c10 100644
--- a/src/wasm-interpreter.c
+++ b/src/wasm-interpreter.c
@@ -470,8 +470,7 @@ DEFINE_BITCAST(bitcast_u64_to_f64, uint64_t, double)
VALUE_TYPE_##type lhs = POP_##type(); \
if (WASM_UNLIKELY(IS_ZERO_##type(rhs))) { \
if (IS_NAN_##type(lhs)) { \
- VALUE_TYPE_##type sign = (lhs & type##_SIGN_MASK); \
- PUSH_##type(sign | type##_QUIET_NAN); \
+ PUSH_##type(lhs | type##_QUIET_NAN); \
} else if (IS_ZERO_##type(lhs)) { \
PUSH_##type(type##_QUIET_NAN); \
} else { \