mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-24 22:54:59 -07:00
Fix types for BSD
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user