Avoid errors when converting V128 for the wasm-c-api

For this to work the wasm-c-api must add support for the V128 type (e.g. through __uint128_t)
This commit is contained in:
Andrew Brown
2019-09-25 11:49:58 -07:00
committed by Dan Gohman
parent 03a9f0e461
commit 68de2247bc

View File

@@ -815,6 +815,7 @@ fn from_valtype(ty: &ValType) -> wasm_valkind_t {
ValType::F64 => 3,
ValType::AnyRef => 128,
ValType::FuncRef => 129,
_ => panic!("wasm_valkind_t has no known conversion for {:?}", ty),
}
}