summary refs log tree commit diff stats
path: root/lib/system/timers.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2019-07-03 05:59:07 -0700
committerAndreas Rumpf <rumpf_a@web.de>2019-07-03 14:59:07 +0200
commit0ca71dd92cf2c53443e75487a787198a50266dcd (patch)
tree12e0da1feeb28ff8001e55896c8157caf58b781b /lib/system/timers.nim
parent1e9316e23cbadb01860dfb6e452476890680732a (diff)
downloadNim-0ca71dd92cf2c53443e75487a787198a50266dcd.tar.gz
[bugfix] fix mach_absolute_time header; refs #11591 (#11593)
Diffstat (limited to 'lib/system/timers.nim')
-rw-r--r--lib/system/timers.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/timers.nim b/lib/system/timers.nim
index b0882ffa1..56575abb1 100644
--- a/lib/system/timers.nim
+++ b/lib/system/timers.nim
@@ -36,9 +36,9 @@ elif defined(macosx):
     MachTimebaseInfoData {.pure, final,
         importc: "mach_timebase_info_data_t",
         header: "<mach/mach_time.h>".} = object
-      numer, denom: int32
+      numer, denom: int32 # note: `uint32` in sources
 
-  proc mach_absolute_time(): int64 {.importc, header: "<mach/mach.h>".}
+  proc mach_absolute_time(): uint64 {.importc, header: "<mach/mach_time.h>".}
   proc mach_timebase_info(info: var MachTimebaseInfoData) {.importc,
     header: "<mach/mach_time.h>".}