Skip to content

Commit f9bbf55

Browse files
committed
fix: bump pointer/bump chunk debug assertion
1 parent 1aad072 commit f9bbf55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ impl<const MIN_ALIGN: usize> Bump<MIN_ALIGN> {
908908
let ptr = round_mut_ptr_down_to(footer_ptr.cast::<u8>(), MIN_ALIGN);
909909
debug_assert_eq!(ptr as usize % MIN_ALIGN, 0);
910910
debug_assert!(
911-
data.as_ptr() < ptr,
911+
data.as_ptr() <= ptr,
912912
"bump pointer {ptr:#p} should still be greater than or equal to the \
913913
start of the bump chunk {data:#p}"
914914
);

0 commit comments

Comments
 (0)