Minimize unneeded casts

This commit is contained in:
gingerBill
2021-03-03 14:31:17 +00:00
parent 75f127af7c
commit b727b6438b
24 changed files with 108 additions and 109 deletions
+2 -2
View File
@@ -68,13 +68,13 @@ _stat :: proc(name: string, create_file_attributes: u32, allocator := context.al
lstat :: proc(name: string, allocator := context.allocator) -> (File_Info, Errno) {
attrs := u32(win32.FILE_FLAG_BACKUP_SEMANTICS);
attrs := win32.FILE_FLAG_BACKUP_SEMANTICS;
attrs |= win32.FILE_FLAG_OPEN_REPARSE_POINT;
return _stat(name, attrs, allocator);
}
stat :: proc(name: string, allocator := context.allocator) -> (File_Info, Errno) {
attrs := u32(win32.FILE_FLAG_BACKUP_SEMANTICS);
attrs := win32.FILE_FLAG_BACKUP_SEMANTICS;
return _stat(name, attrs, allocator);
}