From 68de2247bc1d56616061ffa36225a11add2392da Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 25 Sep 2019 11:49:58 -0700 Subject: [PATCH] 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) --- wasmtime-api/src/wasm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/wasmtime-api/src/wasm.rs b/wasmtime-api/src/wasm.rs index 2eec23d9ed..6e7be7cfd3 100644 --- a/wasmtime-api/src/wasm.rs +++ b/wasmtime-api/src/wasm.rs @@ -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), } }