Explorar el Código

Change remaining `repr(packed)` to `repr(C, packed)`. (#42)

Jiří Zárevúcky hace 7 años
padre
commit
1963a45b95
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/boot_loader_name.rs
  2. 1 1
      src/command_line.rs

+ 1 - 1
src/boot_loader_name.rs

@@ -1,6 +1,6 @@
 
 #[derive(Debug)]
-#[repr(packed)] // repr(C) would add unwanted padding before first_section
+#[repr(C, packed)] // only repr(C) would add unwanted padding before first_section
 pub struct BootLoaderNameTag {
     typ: u32,
     size: u32,

+ 1 - 1
src/command_line.rs

@@ -1,6 +1,6 @@
 
 #[derive(Debug)]
-#[repr(packed)] // repr(C) would add unwanted padding before first_section
+#[repr(C, packed)] // only repr(C) would add unwanted padding before first_section
 pub struct CommandLineTag {
     typ: u32,
     size: u32,