zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c43f77f10974e754c7b4c1093b019394262cb111 (tree)
parent 803f0a295b168de058ac915d9ac45add44a41f40
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Thu, 12 Apr 2018 10:38:32 -0400

fix invalid implicit cast on macos

Diffstat:
Mstd/os/file.zig | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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 {