aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflysand7 <thebumboni@gmail.com>2024-01-25 21:32:10 +1100
committerflysand7 <thebumboni@gmail.com>2024-01-25 21:32:24 +1100
commitaf636eedde57c4c891dff7344063253b268404f3 (patch)
treee1c5d75bf0b735eb6ba0fae8b427f3f289d4ef97
parent57b7822e121678187c510d56b25e3d5b2327241e (diff)
os: Fix casting errors in other files
-rw-r--r--core/os/file_windows.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/os/file_windows.odin b/core/os/file_windows.odin
index 0b0baeea3..96f6d8e8f 100644
--- a/core/os/file_windows.odin
+++ b/core/os/file_windows.odin
@@ -349,7 +349,7 @@ exists :: proc(path: string) -> bool {
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
attribs := win32.GetFileAttributesW(wpath)
- return i32(attribs) != win32.INVALID_FILE_ATTRIBUTES
+ return attribs != win32.INVALID_FILE_ATTRIBUTES
}
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)
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 false
@@ -368,7 +368,7 @@ is_dir :: proc(path: string) -> bool {
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
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 false