We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf28c18 commit 87e4f14Copy full SHA for 87e4f14
1 file changed
src/wasmtime/wasmtime.cc
@@ -476,6 +476,7 @@ template <> int64_t convertValueTypeToArg<int64_t>(wasm_val_t val) { return val.
476
template <> uint64_t convertValueTypeToArg<uint64_t>(wasm_val_t val) {
477
return static_cast<uint64_t>(val.of.i64);
478
}
479
+template <> float convertValueTypeToArg<float>(wasm_val_t val) { return val.of.f32; }
480
template <> double convertValueTypeToArg<double>(wasm_val_t val) { return val.of.f64; }
481
482
template <typename T, typename U, std::size_t... I>
0 commit comments