Skip to content

Commit

Permalink
[fix] fix align for AxTaskExt
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Sep 19, 2024
1 parent 2721cfd commit 974d4b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/axtask/src/task_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ impl AxTaskExt {
/// Returns the expected alignment of the task extended structure.
pub fn align() -> usize {
extern "C" {
static __AX_TASK_EXT_SIZE: usize;
static __AX_TASK_EXT_ALIGN: usize;
}
unsafe { __AX_TASK_EXT_SIZE }
unsafe { __AX_TASK_EXT_ALIGN }
}

/// Construct an empty task extended structure that contains no data
Expand Down

0 comments on commit 974d4b5

Please sign in to comment.