Fix trivial_numeric_casts errors.

This commit is contained in:
Dan Gohman
2017-08-31 12:07:54 -07:00
parent 9726bb7367
commit da2c2151b1
3 changed files with 11 additions and 17 deletions

View File

@@ -26,7 +26,7 @@ impl WasmRuntime for DummyRuntime {
builder: &mut FunctionBuilder<Local>,
global_index: GlobalIndex,
) -> Value {
let glob = self.globals[global_index as usize];
let glob = self.globals[global_index];
match glob.ty {
I32 => builder.ins().iconst(glob.ty, -1),
I64 => builder.ins().iconst(glob.ty, -1),