Skip to content

Commit 9b31a2c

Browse files
committed
Use cast instead of as
1 parent 467d7c2 commit 9b31a2c

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
@@ -268,7 +268,7 @@ pub unsafe fn start_core<C: smccc::Call, F: FnOnce() + Send + 'static, const N:
268268
.cast::<ManuallyDrop<F>>();
269269

270270
assert!(stack.is_aligned());
271-
let stack_end = stack.wrapping_add(1) as *mut StartCoreStack<F>;
271+
let stack_end = stack.wrapping_add(1).cast::<StartCoreStack<F>>();
272272

273273
// Write the trampoline and entry closure, so the assembly entry point can jump to it.
274274
// SAFETY: Our caller promised that the stack is valid and nothing else will access it.

0 commit comments

Comments
 (0)