use add instead of offset
This commit is contained in:
parent
88b7ae642c
commit
328a75f766
1 changed files with 1 additions and 1 deletions
|
@ -2156,7 +2156,7 @@ where
|
||||||
debug_assert_eq!(original_ptr, src_buf);
|
debug_assert_eq!(original_ptr, src_buf);
|
||||||
let src_idx = source_iter.ptr;
|
let src_idx = source_iter.ptr;
|
||||||
unsafe {
|
unsafe {
|
||||||
let dst = src_buf.offset(front_buffer.count as isize);
|
let dst = src_buf.add(front_buffer.count);
|
||||||
debug_assert!(
|
debug_assert!(
|
||||||
dst as *const _ < src_idx,
|
dst as *const _ < src_idx,
|
||||||
"InPlaceIterable implementation produced more\
|
"InPlaceIterable implementation produced more\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue