Improve some docs and misc code segments

This commit is contained in:
Mark McCaskey
2020-01-31 15:42:18 -08:00
parent a01fd4cafb
commit 929825cba1
6 changed files with 21 additions and 14 deletions

View File

@ -88,7 +88,7 @@ impl Instance for LocalInstance {
}
}
let offset = self.offsets[id];
let addr: *const u8 = unsafe { self.code.as_ptr().offset(offset as isize) };
let addr: *const u8 = unsafe { self.code.as_ptr().add(offset) };
use std::mem::transmute;
Ok(unsafe {
match args_u64.len() {