@@ -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 {
- return __error()^
+ return int(__error()^)
fork :: proc() -> (Pid, Errno) {