Skip to content

Commit

Permalink
Fix syntax again
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jun 25, 2021
1 parent d300a1b commit 5451d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/src/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ impl<T: Copy + ValueType> WasmPtr<T, Array> {
}

Some(
(0..length)
(0..(length as usize))
.map(|i| unsafe {
let cell_ptr = align_pointer(
memory
.view::<u8>()
.as_ptr()
.add((self.offset + i * item_size) as usize)
.add((self.offset as usize + i * item_size))
as usize,
mem::align_of::<T>(),
) as *const Cell<T>;
Expand Down

0 comments on commit 5451d71

Please sign in to comment.