Skip to content

Commit

Permalink
fix(hal-core): wrong target_pointer_width cfg (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jan 4, 2025
1 parent 2690648 commit ed40582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal-core/src/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ macro_rules! impl_addrs {
///
/// * If debug assertions are enabled and the address is not
/// valid for the target architecture.
#[cfg(target_pointer_width = "u32")]
#[cfg(target_pointer_width = "32")]
pub fn from_u32(u: u32) -> Self {
Self::from_usize(u as usize)
}
Expand Down

0 comments on commit ed40582

Please sign in to comment.