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

@@ -256,7 +256,7 @@ pub fn translate_module(
ParserState::EndSection => break,
_ => return Err(String::from("wrong content in code section")),
};
let signature = signatures[functions[function_index as usize] as usize].clone();
let signature = signatures[functions[function_index]].clone();
match translate_function_body(
&mut parser,
function_index,