authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-04-12 10:38:32-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-04-12 10:38:32-04:00
logc43f77f10974e754c7b4c1093b019394262cb111
treed4fd6fe2c9be75796a221e569c2101e5c7c756f8
parent803f0a295b168de058ac915d9ac45add44a41f40

fix invalid implicit cast on macos


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

std/os/file.zig+3-1
...@@ -253,7 +253,9 @@ pub const File = struct {...@@ -253,7 +253,9 @@ pub const File = struct {
253 };253 };
254 }254 }
255255
256 return stat.mode;256 // TODO: we should be able to cast u16 to ModeError!u32, making this
257 // explicit cast not necessary
258 return os.FileMode(stat.mode);
257 } else if (is_windows) {259 } else if (is_windows) {
258 return {};260 return {};
259 } else {261 } else {