diff --git a/src/webassembly/instance.rs b/src/webassembly/instance.rs index b32a8e37c..a45596226 100644 --- a/src/webassembly/instance.rs +++ b/src/webassembly/instance.rs @@ -49,7 +49,7 @@ fn get_function_addr( func_index: &FuncIndex, import_functions: &Vec<*const u8>, functions: &Vec>, -) -> *const u8 { +) -> *const () { let index = func_index.index(); let len = import_functions.len(); let func_pointer = if index < len { @@ -57,7 +57,7 @@ fn get_function_addr( } else { (&functions[func_index.index() - len]).as_ptr() }; - func_pointer + func_pointer as _ } // pub fn get_function_addr( @@ -468,7 +468,8 @@ impl Instance { pub fn memories(&self) -> Arc> { self.memories.clone() } - pub fn get_function_pointer(&self, func_index: FuncIndex) -> *const u8 { + + pub fn get_function_pointer(&self, func_index: FuncIndex) -> *const () { get_function_addr(&func_index, &self.import_functions, &self.functions) }