aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-23 09:50:26 +0100
committergingerBill <bill@gingerbill.org>2021-04-23 09:50:26 +0100
commitbd31a99bf7ae06fdc6f2eda1cbfd2d99e0841c31 (patch)
tree3eca5c9be2be4628350b9d8ec2910e36d940ad26
parent17bbb48d8a04aaf6cc53777fe4da6ba1b7fff61b (diff)
Remove redundant `auto_cast`
-rw-r--r--core/os/stat_unix.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/stat_unix.odin b/core/os/stat_unix.odin
index b1f427828..76cab69da 100644
--- a/core/os/stat_unix.odin
+++ b/core/os/stat_unix.odin
@@ -61,7 +61,7 @@ _make_time_from_unix_file_time :: proc(uft: Unix_File_Time) -> time.Time {
_fill_file_info_from_stat :: proc(fi: ^File_Info, s: OS_Stat) {
fi.size = s.size;
fi.mode = cast(File_Mode)s.mode;
- fi.is_dir = S_ISDIR(auto_cast s.mode);
+ fi.is_dir = S_ISDIR(s.mode);
// NOTE(laleksic, 2021-01-21): Not really creation time, but closest we can get (maybe better to leave it 0?)
fi.creation_time = _make_time_from_unix_file_time(s.status_change);