From 302f57368350f5284e1733a219058d588eab7263 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 17 May 2018 18:20:58 +0300 Subject: [PATCH] One more fix for timer.nim on MacOS. --- asyncdispatch2/timer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncdispatch2/timer.nim b/asyncdispatch2/timer.nim index 6daf4ea..a0c2c01 100644 --- a/asyncdispatch2/timer.nim +++ b/asyncdispatch2/timer.nim @@ -30,7 +30,7 @@ elif defined(macosx): proc fastEpochTime*(): uint64 {.inline.} = var t: Timeval posix_gettimeofday(t) - result = (t.tv_sec * 1_000 + t.tv_usec div 1_000) + result = (uint64(t.tv_sec) * 1_000 + uint64(t.tv_usec) div 1_000) elif defined(posix):