Change repr(packed) struct to repr(C, packed)
`repr(packed)` structs do not have a well-defined layout
This commit is contained in:
parent
da57c6418d
commit
f41fa64f97
1 changed files with 1 additions and 1 deletions
|
|
@ -510,7 +510,7 @@ mod tests {
|
|||
use syscalls::{Sysno, syscall};
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
#[repr(packed)]
|
||||
#[repr(C, packed)]
|
||||
#[derive(Copy, Clone, Default, Debug, PartialEq)]
|
||||
struct __tilecfg {
|
||||
/// 0 `or` 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue