Fixed start function

This commit is contained in:
Syrus Akbary
2018-10-24 00:17:17 +02:00
parent a3343a2ffb
commit d28b29ccc0

View File

@ -503,9 +503,9 @@ impl Instance {
result result
} }
pub fn start(&mut self, vmctx: &VmCtx) { pub fn start(&self, vmctx: &VmCtx) {
if let Some(func_index) = self.start_func { if let Some(func_index) = self.start_func {
let func: fn(&VmCtx) = get_instance_function!(self, func_index); let func: fn(&VmCtx) = get_instance_function!(&self, func_index);
func(vmctx) func(vmctx)
} }
} }