Commit d89d171
authored
Add pad_to_align to syscall payload value (#1175)
From Layout::extend documentation:
In order to match C representation layout repr(C), you should call
pad_to_align after extending the layout with all fields. (There is no
way to match the default Rust representation layout repr(Rust), as it is
unspecified.)1 parent 79d9878 commit d89d171
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
1577 | | - | |
| 1577 | + | |
1578 | 1578 | | |
1579 | 1579 | | |
1580 | 1580 | | |
| |||
0 commit comments