diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-08-04 15:53:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-04 15:53:18 +0100 |
| commit | f427f040fd83f5db411396bd4d4eae6f39c26de7 (patch) | |
| tree | 0ee1feef26570f195a8d0d00d0266edc028dbfec /core/flags | |
| parent | 71932628cc3c1957a98e998740b059df9b7dd392 (diff) | |
| parent | c078b2dd1be617e6687a3a5ffc919a45bbabb5bf (diff) | |
Merge pull request #4020 from odin-lang/bill/os-errno
`os.Error` to replace `os.Errno`
Diffstat (limited to 'core/flags')
| -rw-r--r-- | core/flags/errors.odin | 2 | ||||
| -rw-r--r-- | core/flags/internal_rtti.odin | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/flags/errors.odin b/core/flags/errors.odin index 21ea05477..6e48f6ccf 100644 --- a/core/flags/errors.odin +++ b/core/flags/errors.odin @@ -28,7 +28,7 @@ Parse_Error :: struct { // Provides more granular information than what just a string could hold. Open_File_Error :: struct { filename: string, - errno: os.Errno, + errno: os.Error, mode: int, perms: int, } diff --git a/core/flags/internal_rtti.odin b/core/flags/internal_rtti.odin index ac39eaa8b..4c1db5d0b 100644 --- a/core/flags/internal_rtti.odin +++ b/core/flags/internal_rtti.odin @@ -254,8 +254,8 @@ parse_and_set_pointer_by_named_type :: proc(ptr: rawptr, str: string, data_type: } handle, errno := os.open(str, mode, perms) - if errno != 0 { - // NOTE(Feoramund): os.Errno is system-dependent, and there's + if errno != nil { + // NOTE(Feoramund): os.Error is system-dependent, and there's // currently no good way to translate them all into strings. // // The upcoming `os2` package will hopefully solve this. |