diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-04-12 10:38:32 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-04-12 10:38:32 -0400 |
| commit | c43f77f10974e754c7b4c1093b019394262cb111 (patch) | |
| tree | d4fd6fe2c9be75796a221e569c2101e5c7c756f8 /std | |
| parent | 803f0a295b168de058ac915d9ac45add44a41f40 (diff) | |
| download | zig-c43f77f10974e754c7b4c1093b019394262cb111.tar.gz zig-c43f77f10974e754c7b4c1093b019394262cb111.zip | |
fix invalid implicit cast on macos
Diffstat (limited to 'std')
| -rw-r--r-- | std/os/file.zig | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |
