From 262b4d8b890b4a595a8b62b4e80b204ad68746b3 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Sun, 3 Jun 2018 02:06:58 +0300 Subject: [PATCH] Fix compilation error. --- asyncdispatch2/asyncloop.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asyncdispatch2/asyncloop.nim b/asyncdispatch2/asyncloop.nim index b73f65e..f0cc0f4 100644 --- a/asyncdispatch2/asyncloop.nim +++ b/asyncdispatch2/asyncloop.nim @@ -197,7 +197,7 @@ template processTimersGetTimeout(loop, timeout: untyped) = when defined(windows): timeout = DWORD(lastFinish - curTime) else: - timeout = lastFinish - curTime + timeout = int(lastFinish - curTime) if timeout == 0: if len(loop.callbacks) == 0: @@ -566,7 +566,7 @@ else: loop.processTimersGetTimeout(curTimeout) # Processing IO descriptors and all hardware events. - count = loop.selector.selectInto(curTimeout, loop.keys) + var count = loop.selector.selectInto(curTimeout, loop.keys) for i in 0..