fix newly introduced bug in wasmptr array access

This commit is contained in:
Mark McCaskey
2019-06-10 13:32:33 +02:00
parent 7a66a5285d
commit 7965ed2746
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ impl<T: Copy + ValueType> WasmPtr<T, Array> {
mem::align_of::<T>(),
) as *const Cell<T>;
let cell_ptrs = &std::slice::from_raw_parts(cell_ptr, slice_full_len)
[index as usize..length as usize];
[index as usize..slice_full_len];
Ok(cell_ptrs)
}
}