authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2021-05-13 06:18:51+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2021-05-13 06:18:51+07:00
log90a54f06e507e11ccf07c1378fe4a12b002ec2bd
treee9ae9dca3d88062847e9679b7d1b045961f03931
parent9e67c062c40292f02334111a4784bd60907b5d0e

Add a comment to explain the alignment directive


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/fs.zig+2
......@@ -501,6 +501,8 @@ pub const Dir = struct {
501501 },
502502 .linux => struct {
503503 dir: Dir,
504 // The if guard is solely there to prevent compile errors from missing `os.linux.dirent64`
505 // definition when compiling for other OSes. It doesn't do anything when compiling for Linux.
504506 buf: [8192]u8 align(if (builtin.os.tag != .linux) 1 else @alignOf(os.linux.dirent64)),
505507 index: usize,
506508 end_index: usize,