| author | |
| committer | |
| log | c43f77f10974e754c7b4c1093b019394262cb111 |
| tree | d4fd6fe2c9be75796a221e569c2101e5c7c756f8 |
| parent | 803f0a295b168de058ac915d9ac45add44a41f40 |
1 files changed, 3 insertions(+), 1 deletions(-)
std/os/file.zig+3-1| ... | ... | @@ -253,7 +253,9 @@ pub const File = struct { |
| 253 | 253 | }; |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | return stat.mode; | |
| 256 | // TODO: we should be able to cast u16 to ModeError!u32, making this | |
| 257 | // explicit cast not necessary | |
| 258 | return os.FileMode(stat.mode); | |
| 257 | 259 | } else if (is_windows) { |
| 258 | 260 | return {}; |
| 259 | 261 | } else { |