We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2334d2 commit 33e9cb6Copy full SHA for 33e9cb6
src/wasm/literal.cpp
@@ -1142,9 +1142,9 @@ Literal Literal::trunc() const {
1142
Literal Literal::nearbyint() const {
1143
switch (type.getBasic()) {
1144
case Type::f32:
1145
- return Literal(std::nearbyint(getf32()));
+ return standardizeNaN(Literal(std::nearbyint(getf32())));
1146
case Type::f64:
1147
- return Literal(std::nearbyint(getf64()));
+ return standardizeNaN(Literal(std::nearbyint(getf64())));
1148
default:
1149
WASM_UNREACHABLE("unexpected type");
1150
}
0 commit comments