Skip to content

Commit 737e2a0

Browse files
committed
fix ci: sytle check
1 parent 93a82e0 commit 737e2a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util/alloc/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn align_allocation_inner<VM: VMBinding>(
5353
debug_assert!(alignment <= VM::MAX_ALIGNMENT);
5454
debug_assert!(region.is_aligned_to(VM::ALLOC_END_ALIGNMENT));
5555
debug_assert!((alignment & (VM::MIN_ALIGNMENT - 1)) == 0);
56-
debug_assert!((offset & (VM::MIN_ALIGNMENT - 1) as usize) == 0);
56+
debug_assert!((offset & (VM::MIN_ALIGNMENT - 1)) == 0);
5757

5858
// No alignment ever required.
5959
if alignment <= known_alignment || VM::MAX_ALIGNMENT <= VM::MIN_ALIGNMENT {

src/util/malloc/malloc_ms_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn align_offset_alloc<VM: VMBinding>(size: usize, align: usize, offset: usiz
2626
if address.is_zero() {
2727
return address;
2828
}
29-
let mod_offset = offset % (align as usize);
29+
let mod_offset = offset % align;
3030
let mut result =
3131
crate::util::alloc::allocator::align_allocation_no_fill::<VM>(address, align, mod_offset);
3232
if result - BYTES_IN_ADDRESS < address {

0 commit comments

Comments
 (0)