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: "<time.h>", final, pure.} = object ## struct timespec
    tv_sec*: Time  ## Seconds.
    tv_nsec*: clong  ## Nanoseconds.
```
This commit is contained in:
ringabout
2024-07-17 16:50:33 +08:00
committed by GitHub
parent ad5b5e3ec0
commit 9de74b7097

View File

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