Commit c43f77f109

Andrew Kelley <superjoe30@gmail.com>
2018-04-12 16:38:32
fix invalid implicit cast on macos
1 parent 803f0a2
Changed files (1)
std
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 {