diff options
| author | gingerBill <bill@gingerbill.org> | 2024-01-28 23:27:30 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-01-28 23:27:30 +0000 |
| commit | 6da82e038d7471458ae46146218a7bac47ab82ca (patch) | |
| tree | 727f2edb9bd1ea0f0667bf08c782004d0eaf8804 | |
| parent | 38af752cd13555fd1283a155767d0edf89c54ce2 (diff) | |
Fix types for BSD
| -rw-r--r-- | core/os/os_freebsd.odin | 2 | ||||
| -rw-r--r-- | core/os/os_openbsd.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/os/os_freebsd.odin b/core/os/os_freebsd.odin index dd56c7ce0..2fccac87d 100644 --- a/core/os/os_freebsd.odin +++ b/core/os/os_freebsd.odin @@ -305,7 +305,7 @@ is_path_separator :: proc(r: rune) -> bool { } get_last_error :: proc "contextless" () -> int { - return __errno_location()^ + return int(__errno_location()^) } open :: proc(path: string, flags: int = O_RDONLY, mode: int = 0) -> (Handle, Errno) { diff --git a/core/os/os_openbsd.odin b/core/os/os_openbsd.odin index e50c19657..1a9b88c02 100644 --- a/core/os/os_openbsd.odin +++ b/core/os/os_openbsd.odin @@ -296,7 +296,7 @@ is_path_separator :: proc(r: rune) -> bool { } get_last_error :: proc "contextless" () -> int { - return __error()^ + return int(__error()^) } fork :: proc() -> (Pid, Errno) { |