main: refactor unsafe block for C offsets

Uses the `&raw const` syntax to convert the pointer location of static
offsets from C.
This commit is contained in:
Elle Rhumsaa
2025-09-06 14:30:56 +00:00
committed by bjorn3
parent fe1c2f460e
commit cec902e6be
+1 -1
View File
@@ -279,7 +279,7 @@ macro_rules! linker_offsets(
// TODO: UnsafeCell?
static $name: u8;
}
unsafe { &$name as *const u8 as usize }
(&raw const $name) as usize
}
)*
}