mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-22 16:08:23 +00:00
Fix compilation error.
This commit is contained in:
parent
687054219d
commit
262b4d8b89
@ -197,7 +197,7 @@ template processTimersGetTimeout(loop, timeout: untyped) =
|
|||||||
when defined(windows):
|
when defined(windows):
|
||||||
timeout = DWORD(lastFinish - curTime)
|
timeout = DWORD(lastFinish - curTime)
|
||||||
else:
|
else:
|
||||||
timeout = lastFinish - curTime
|
timeout = int(lastFinish - curTime)
|
||||||
|
|
||||||
if timeout == 0:
|
if timeout == 0:
|
||||||
if len(loop.callbacks) == 0:
|
if len(loop.callbacks) == 0:
|
||||||
@ -566,7 +566,7 @@ else:
|
|||||||
loop.processTimersGetTimeout(curTimeout)
|
loop.processTimersGetTimeout(curTimeout)
|
||||||
|
|
||||||
# Processing IO descriptors and all hardware events.
|
# 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..<count:
|
for i in 0..<count:
|
||||||
let fd = loop.keys[i].fd
|
let fd = loop.keys[i].fd
|
||||||
let events = loop.keys[i].events
|
let events = loop.keys[i].events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user