Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#268) https://rust-lang.github.io/unsafe-code-guidelines/layout/unions.html points out that > [...] the default layout of Rust unions is, in general, > unspecified. > > That is, there are no general guarantees about the offset of the > fields, whether all fields have the same offset, what the call ABI > of the union is, etc. This commit explicitly asks for `#[repr(C)]` layout to guarantee that both fields have the same offeset.
- Loading branch information