Skip to content

Commit e6bffe2

Browse files
committed
bindgen: changes to float reprs in wasm-encoder
1 parent 0121980 commit e6bffe2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bindgen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,8 +2200,8 @@ impl<'a> FunctionBindgen<'a> {
22002200
self.push(match ty {
22012201
ValType::I32 => Ins::I32Const(0),
22022202
ValType::I64 => Ins::I64Const(0),
2203-
ValType::F32 => Ins::F32Const(0.0),
2204-
ValType::F64 => Ins::F64Const(0.0),
2203+
ValType::F32 => Ins::F32Const(0.0.into()),
2204+
ValType::F64 => Ins::F64Const(0.0.into()),
22052205
_ => unreachable!(),
22062206
})
22072207
}

0 commit comments

Comments
 (0)