authorgravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-03-23 22:41:08+13:00
committergravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-03-23 22:41:08+13:00
log7350181a4a778f9d03186e5123beffdf80f58606
tree9b6e75b7cf5393a3f3b1fc789cd95706227571a5
parent3d1732ef6c8ebc7edf10485f61b4ec905303cd8a

Fix os.File.mode function


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

std/os/file.zig+1-1
...@@ -233,7 +233,7 @@ pub const File = struct {...@@ -233,7 +233,7 @@ pub const File = struct {
233 Unexpected,233 Unexpected,
234 };234 };
235235
236 fn mode(self: &File) ModeError!FileMode {236 fn mode(self: &File) ModeError!os.FileMode {
237 if (is_posix) {237 if (is_posix) {
238 var stat: posix.Stat = undefined;238 var stat: posix.Stat = undefined;
239 const err = posix.getErrno(posix.fstat(self.handle, &stat));239 const err = posix.getErrno(posix.fstat(self.handle, &stat));