From 86bbd96a331baab6b973794018dc62a2738adad9 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Thu, 22 Mar 2018 17:49:30 +0300 Subject: [PATCH] Require func_type (not func) for func import. (#79) --- src/validation/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation/mod.rs b/src/validation/mod.rs index e96c3b5..5e4bc1e 100644 --- a/src/validation/mod.rs +++ b/src/validation/mod.rs @@ -195,7 +195,7 @@ pub fn validate_module(module: Module) -> Result { for import in import_section.entries() { match *import.external() { External::Function(function_type_index) => { - context.require_function(function_type_index)?; + context.require_function_type(function_type_index)?; } External::Global(ref global_type) => { if global_type.is_mutable() {