Преглед на файлове

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

Jiří Zárevúcky преди 7 години
родител
ревизия
1963a45b95
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  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,