use add instead of offset
This commit is contained in:
parent
88b7ae642c
commit
328a75f766
@ -2156,7 +2156,7 @@ where
|
||||
debug_assert_eq!(original_ptr, src_buf);
|
||||
let src_idx = source_iter.ptr;
|
||||
unsafe {
|
||||
let dst = src_buf.offset(front_buffer.count as isize);
|
||||
let dst = src_buf.add(front_buffer.count);
|
||||
debug_assert!(
|
||||
dst as *const _ < src_idx,
|
||||
"InPlaceIterable implementation produced more\
|
||||
|
Loading…
x
Reference in New Issue
Block a user