mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
os: Fix casting errors in other files
This commit is contained in:
@@ -349,7 +349,7 @@ exists :: proc(path: string) -> bool {
|
|||||||
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
||||||
attribs := win32.GetFileAttributesW(wpath)
|
attribs := win32.GetFileAttributesW(wpath)
|
||||||
|
|
||||||
return i32(attribs) != win32.INVALID_FILE_ATTRIBUTES
|
return attribs != win32.INVALID_FILE_ATTRIBUTES
|
||||||
}
|
}
|
||||||
|
|
||||||
is_file :: proc(path: string) -> bool {
|
is_file :: proc(path: string) -> bool {
|
||||||
@@ -357,7 +357,7 @@ is_file :: proc(path: string) -> bool {
|
|||||||
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
||||||
attribs := win32.GetFileAttributesW(wpath)
|
attribs := win32.GetFileAttributesW(wpath)
|
||||||
|
|
||||||
if i32(attribs) != win32.INVALID_FILE_ATTRIBUTES {
|
if attribs != win32.INVALID_FILE_ATTRIBUTES {
|
||||||
return attribs & win32.FILE_ATTRIBUTE_DIRECTORY == 0
|
return attribs & win32.FILE_ATTRIBUTE_DIRECTORY == 0
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
@@ -368,7 +368,7 @@ is_dir :: proc(path: string) -> bool {
|
|||||||
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
||||||
attribs := win32.GetFileAttributesW(wpath)
|
attribs := win32.GetFileAttributesW(wpath)
|
||||||
|
|
||||||
if i32(attribs) != win32.INVALID_FILE_ATTRIBUTES {
|
if attribs != win32.INVALID_FILE_ATTRIBUTES {
|
||||||
return attribs & win32.FILE_ATTRIBUTE_DIRECTORY != 0
|
return attribs & win32.FILE_ATTRIBUTE_DIRECTORY != 0
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user