From 5665ae02bcb116d981a825cf9b14bf7ada686ac4 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Wed, 6 Dec 2023 00:33:09 +1100 Subject: [PATCH] type error --- core/sys/linux/sys.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index e8d5346cb..27c855c3b 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -2413,7 +2413,7 @@ epoll_wait :: proc(epfd: Fd, events: [^]EPoll_Event, count: i32, timeout: i32) - } else { // Convert milliseconds to nanosecond timespec timeout_ns := Time_Spec { - time_sec = timeout * 1000, + time_sec = uint(timeout * 1000), time_nsec = 0, } ret := syscall(SYS_epoll_pwait, epfd, events, count, &timeout_ns, rawptr(nil))