Skip to content

Commit b9a4609

Browse files
committed
fix type error
1 parent 3085217 commit b9a4609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binary/load_kernel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ where
232232
let new_bytes_ptr = new_frame.start_address().as_u64() as *mut u8;
233233
unsafe {
234234
core::ptr::write_bytes(
235-
new_bytes_ptr.add(data_bytes_before_zero),
235+
new_bytes_ptr.add(data_bytes_before_zero as usize),
236236
0,
237237
(Size4KiB::SIZE - data_bytes_before_zero) as usize,
238238
);

0 commit comments

Comments
 (0)