Skip to content

Commit 1963a45

Browse files
authored
Change remaining repr(packed) to repr(C, packed). (#42)
1 parent 784cfb5 commit 1963a45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/boot_loader_name.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#[derive(Debug)]
3-
#[repr(packed)] // repr(C) would add unwanted padding before first_section
3+
#[repr(C, packed)] // only repr(C) would add unwanted padding before first_section
44
pub struct BootLoaderNameTag {
55
typ: u32,
66
size: u32,

src/command_line.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#[derive(Debug)]
3-
#[repr(packed)] // repr(C) would add unwanted padding before first_section
3+
#[repr(C, packed)] // only repr(C) would add unwanted padding before first_section
44
pub struct CommandLineTag {
55
typ: u32,
66
size: u32,

0 commit comments

Comments
 (0)