Skip to content

Commit

Permalink
Config struct needs to be repr(C) to have correct layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor committed Jul 9, 2024
1 parent 00f3bf1 commit 95f1f6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/device/sound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ impl From<PcmRate> for u8 {
}
}

#[repr(C)]
struct VirtIOSoundConfig {
jacks: ReadOnly<u32>,
streams: ReadOnly<u32>,
Expand Down

0 comments on commit 95f1f6f

Please sign in to comment.