Skip to content

Commit

Permalink
fix invalid implicit cast on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Apr 12, 2018
1 parent 803f0a2 commit c43f77f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion std/os/file.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c43f77f

Please sign in to comment.