summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-07-17 16:50:33 +0800
committerGitHub <noreply@github.com>2024-07-17 10:50:33 +0200
commit9de74b7097559ddb121d012f5f415b39856780b7 (patch)
tree8f6f9ee8866d925341f107187a3de20572d5de86 /lib
parentad5b5e3ec08c70df157c68ee529d8f26aac87609 (diff)
downloadNim-9de74b7097559ddb121d012f5f415b39856780b7.tar.gz
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.
```
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/osproc.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 2deb9fcaa..bd6bcde2b 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])