Skip to content

Commit

Permalink
Merge 161a8eb into c5442cf
Browse files Browse the repository at this point in the history
  • Loading branch information
jhorstmann authored Mar 28, 2022
2 parents c5442cf + 161a8eb commit ebb23d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arrow/src/buffer/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,9 @@ impl MutableBuffer {

let mut dst = buffer.data.as_ptr();
for item in iterator {
let item = item?;
// note how there is no reserve here (compared with `extend_from_iter`)
let src = item?.to_byte_slice().as_ptr();
let src = item.to_byte_slice().as_ptr();
std::ptr::copy_nonoverlapping(src, dst, item_size);
dst = dst.add(item_size);
}
Expand Down

0 comments on commit ebb23d0

Please sign in to comment.