Store v128 as u128 in wasmtime crate (#689)

As [suggested], this seems like a better and more ergonomic idea than
using `[u8; 16]`!

[suggested]: 3d69e04659 (r36326017)
This commit is contained in:
Alex Crichton
2019-12-17 09:25:09 -06:00
committed by GitHub
parent d1866f0e09
commit dc3f88b297
2 changed files with 4 additions and 4 deletions

View File

@@ -157,7 +157,7 @@ impl ModuleData {
wasmtime::Val::I64(i) => RuntimeValue::I64(i),
wasmtime::Val::F32(i) => RuntimeValue::F32(i),
wasmtime::Val::F64(i) => RuntimeValue::F64(i),
wasmtime::Val::V128(i) => RuntimeValue::V128(i),
wasmtime::Val::V128(i) => RuntimeValue::V128(i.to_le_bytes()),
_ => panic!("unsupported value {:?}", v),
})
.collect::<Vec<RuntimeValue>>(),