From 9de74b7097559ddb121d012f5f415b39856780b7 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:50:33 +0800 Subject: [PATCH] fixes #23844; Nim devel nightly i386 build failing (#23849) fixes #23844 follow up https://github.com/nim-lang/Nim/pull/23834 ```nim type Timespec* {.importc: "struct timespec", header: "", final, pure.} = object ## struct timespec tv_sec*: Time ## Seconds. tv_nsec*: clong ## Nanoseconds. ``` --- lib/pure/osproc.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 2deb9fcaa130..bd6bcde2be11 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -1406,7 +1406,7 @@ elif not defined(useNimRtl): waitSpec: TimeSpec unused: Timespec waitSpec.tv_sec = posix.Time(secs) - waitSpec.tv_nsec = ns + waitSpec.tv_nsec = clong ns discard posix.clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, waitSpec, unused) let remaining = deadline - getMonoTime() delay = min([delay * 2, remaining, maxWait])