authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2021-04-20 18:35:50+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2021-05-12 14:52:53+07:00
log5dd6f9616e2adebed8e43a0c6bfb3ce8279b1c15
tree97adf09fb8543764f34986c21d5298a44261d40d
parent9c07d30ef5ccfa50c61b51f75c42cf37a09a5863

Fix linux dirent64 buffer align directive


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

lib/std/fs.zig+1-1
...@@ -501,7 +501,7 @@ pub const Dir = struct {...@@ -501,7 +501,7 @@ pub const Dir = struct {
501 },501 },
502 .linux => struct {502 .linux => struct {
503 dir: Dir,503 dir: Dir,
504 buf: [8192]u8, // TODO align(@alignOf(os.dirent64)),504 buf: [8192]u8 align(if (builtin.os.tag != .linux) 1 else @alignOf(os.linux.dirent64)),
505 index: usize,505 index: usize,
506 end_index: usize,506 end_index: usize,
507507