From c43f77f10974e754c7b4c1093b019394262cb111 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 12 Apr 2018 10:38:32 -0400 Subject: [PATCH] fix invalid implicit cast on macos --- std/os/file.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/std/os/file.zig b/std/os/file.zig index 94b36fe331..94415a361d 100644 --- a/std/os/file.zig +++ b/std/os/file.zig @@ -253,7 +253,9 @@ pub const File = struct { }; } - return stat.mode; + // TODO: we should be able to cast u16 to ModeError!u32, making this + // explicit cast not necessary + return os.FileMode(stat.mode); } else if (is_windows) { return {}; } else {