1
0
Fork 0

szl: replace as with cast

This commit is contained in:
Simon Renblad 2024-10-17 16:43:17 +08:00
parent 01fdb5dd95
commit ed83a6d8af
1 changed files with 4 additions and 4 deletions

View File

@ -120,13 +120,13 @@ pub fn main_core0() {
slcr::BootModePins::Jtag => netboot::netboot(
&mut bootgen_file,
config,
addr_of_mut!(__runtime_start) as *mut u8,
addr_of_mut!(__runtime_start).cast(),
max_len,
),
slcr::BootModePins::SdCard => {
if boot_sd(
&mut bootgen_file,
addr_of_mut!(__runtime_start) as *mut u8,
addr_of_mut!(__runtime_start).cast(),
max_len,
)
.is_err()
@ -136,7 +136,7 @@ pub fn main_core0() {
netboot::netboot(
&mut bootgen_file,
config,
addr_of_mut!(__runtime_start) as *mut u8,
addr_of_mut!(__runtime_start).cast(),
max_len,
)
}
@ -147,7 +147,7 @@ pub fn main_core0() {
netboot::netboot(
&mut bootgen_file,
config,
addr_of_mut!(__runtime_start) as *mut u8,
addr_of_mut!(__runtime_start).cast(),
max_len,
)
}