Skip to content

Commit

Permalink
fix(arch): apply cfg attribute to correct intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Dec 29, 2024
1 parent 1a51154 commit f6d46e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ pub mod ext {
}

#[inline]
#[cfg(any(target_arch = "aarch64", target_arch = "x86"))]
#[cfg(target_arch = "aarch64")]
pub unsafe fn __readfsdword(offset: u32) -> usize {
0usize
}
#[inline]
#[cfg(target_arch = "aarch64")]
#[cfg(any(target_arch = "aarch64", target_arch = "x86"))]
pub unsafe fn __readgsqword(offset: u32) -> usize {
0usize
}
Expand Down

0 comments on commit f6d46e8

Please sign in to comment.