We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dec89a4 + c6a74bf commit 7b2f728Copy full SHA for 7b2f728
2 files changed
crates/wac-parser/src/resolution/encoding.rs
@@ -377,7 +377,7 @@ impl From<PrimitiveType> for PrimitiveValType {
377
PrimitiveType::S32 => Self::S32,
378
PrimitiveType::U64 => Self::U64,
379
PrimitiveType::S64 => Self::S64,
380
- PrimitiveType::Float32 => Self::Float64,
+ PrimitiveType::Float32 => Self::Float32,
381
PrimitiveType::Float64 => Self::Float64,
382
PrimitiveType::Char => Self::Char,
383
PrimitiveType::Bool => Self::Bool,
crates/wac-parser/tests/encoding/types.wat.result
@@ -15,7 +15,7 @@
15
(export (;13;) "g" (type 12))
16
(type (;14;) s64)
17
(export (;15;) "h" (type 14))
18
- (type (;16;) float64)
+ (type (;16;) float32)
19
(export (;17;) "i" (type 16))
20
(type (;18;) float64)
21
(export (;19;) "j" (type 18))
0 commit comments