Change get_func_type's return type to SignatureType.

It's the same thing, but provides more readability.
This commit is contained in:
Dan Gohman
2017-10-13 16:42:01 -07:00
parent 2c53dc69ff
commit b87178647b

View File

@@ -388,7 +388,7 @@ impl<'data, 'module> cton_wasm::ModuleEnvironment<'data> for ModuleEnvironment<'
self.module.functions.push(sig_index);
}
fn get_func_type(&self, func_index: FunctionIndex) -> usize {
fn get_func_type(&self, func_index: FunctionIndex) -> SignatureIndex {
self.module.functions[func_index]
}