Minimize unneeded casts
This commit is contained in:
1 parent
75f127af7c
commit
b727b6438b
24 files changed
+108
-109
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user