Skip to content

Commit c341912

Browse files
committed
Don't use ptr.addr() to avoid bumping MSRV
1 parent 9b55295 commit c341912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rp235x-hal/src/multicore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub enum Error {
6363
fn install_stack_guard(stack_limit: *mut usize) {
6464
// Cortex-M33 has dedicated stack checking functionality via msplim
6565
unsafe {
66-
cortex_m::register::msplim::write(stack_limit.addr() as u32);
66+
cortex_m::register::msplim::write(stack_limit as u32);
6767
}
6868
}
6969

0 commit comments

Comments
 (0)