fix backward enumerate

This commit is contained in:
Mark McCaskey 2019-03-29 15:21:54 -07:00
parent 5dcb95dd7a
commit e7a5c01ef8

View File

@ -24,7 +24,7 @@ pub fn platform_fd_pread(
) )
}; };
nread.set(result as u32); nread.set(result as u32);
for (arr_cell, i) in iovs.iter().enumerate() { for (i, arr_cell) in iovs.iter().enumerate() {
let wasi_iovec = __wasi_iovec_t { let wasi_iovec = __wasi_iovec_t {
buf: iovec[i] as _, buf: iovec[i] as _,
buf_len: iovec[i].iov_len as u32, buf_len: iovec[i].iov_len as u32,