Skip to content

Commit 57d66a0

Browse files
committed
fix: buffer slice end does not need to be aligned
Signed-off-by: Alexander Droste <[email protected]>
1 parent d90bbda commit 57d66a0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

vortex-buffer/src/buffer.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,6 @@ impl<T> Buffer<T> {
321321
if !begin_byte.is_multiple_of(*alignment) {
322322
vortex_panic!("range start must be aligned to {alignment:?}");
323323
}
324-
if !end_byte.is_multiple_of(*alignment) {
325-
vortex_panic!("range end must be aligned to {alignment:?}");
326-
}
327324
if !alignment.is_aligned_to(Alignment::of::<T>()) {
328325
vortex_panic!("Slice alignment must at least align to type T")
329326
}

0 commit comments

Comments
 (0)