From b87178647be08f2016fa17b7fd0b449122d14ddc Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 13 Oct 2017 16:42:01 -0700 Subject: [PATCH] Change `get_func_type`'s return type to SignatureType. It's the same thing, but provides more readability. --- lib/runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/src/lib.rs b/lib/runtime/src/lib.rs index 599235805e..d02422c269 100644 --- a/lib/runtime/src/lib.rs +++ b/lib/runtime/src/lib.rs @@ -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] }