From d741fc85566899ff926a5a8fbc062e01a46ba973 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:46:47 +0800 Subject: [PATCH] fixes #23844; Nim devel nightly i386 build failing fixes #23844 --- 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..1c5129405ee8 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 = int ns discard posix.clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, waitSpec, unused) let remaining = deadline - getMonoTime() delay = min([delay * 2, remaining, maxWait])