From 35857d3103b65020ce486571506aa69f53ad9a1a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 12 Sep 2023 23:01:49 +0100 Subject: [PATCH] Fix wrong type --- core/os/os_linux.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin index 1a4c1fddb..51a14ab44 100644 --- a/core/os/os_linux.odin +++ b/core/os/os_linux.odin @@ -441,7 +441,7 @@ pollfd :: struct { sigset_t :: distinct u64 foreign libc { - @(link_name="__errno_location") __errno_location :: proc() -> ^int --- + @(link_name="__errno_location") __errno_location :: proc() -> ^c.int --- @(link_name="getpagesize") _unix_getpagesize :: proc() -> c.int --- @(link_name="get_nprocs") _unix_get_nprocs :: proc() -> c.int --- @@ -488,7 +488,7 @@ _get_errno :: proc(res: int) -> Errno { // get errno from libc get_last_error :: proc "contextless" () -> int { - return __errno_location()^ + return int(__errno_location()^) } personality :: proc(persona: u64) -> (Errno) {