mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-29 19:59:27 +00:00
Fix syntax again
This commit is contained in:
@ -151,13 +151,13 @@ impl<T: Copy + ValueType> WasmPtr<T, Array> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Some(
|
Some(
|
||||||
(0..length)
|
(0..(length as usize))
|
||||||
.map(|i| unsafe {
|
.map(|i| unsafe {
|
||||||
let cell_ptr = align_pointer(
|
let cell_ptr = align_pointer(
|
||||||
memory
|
memory
|
||||||
.view::<u8>()
|
.view::<u8>()
|
||||||
.as_ptr()
|
.as_ptr()
|
||||||
.add((self.offset + i * item_size) as usize)
|
.add((self.offset as usize + i * item_size))
|
||||||
as usize,
|
as usize,
|
||||||
mem::align_of::<T>(),
|
mem::align_of::<T>(),
|
||||||
) as *const Cell<T>;
|
) as *const Cell<T>;
|
||||||
|
Reference in New Issue
Block a user