Fixed Instance functions memory offsets

This commit is contained in:
Syrus Akbary
2018-10-15 12:44:24 +02:00
parent 714c27b502
commit 7685746655

View File

@ -103,8 +103,8 @@ impl Instance {
.compile(&*isa)
.map_err(|e| ErrorKind::CompileError(e.to_string()))?
as usize;
context_and_offsets.push((func_context, total_size));
total_size += code_size_offset;
context_and_offsets.push((func_context, code_size_offset));
}
// We only want to allocate in memory if there is more than