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])