Fixed typo introduced in #8428 that leads to InvalidIdent assertion failure (#8464)

This commit is contained in:
Yuriy Glukhov 2018-07-30 09:54:52 +03:00 • committed by Andreas Rumpf
commit 57c3b807d0

View file

@ -114,7 +114,7 @@ proc newSelector*[T](): Selector[T] =
result.fds = newSeq[SelectorKey[T]](maxFD) result.fds = newSeq[SelectorKey[T]](maxFD)
result.changes = newSeqOfCap[KEvent](MAX_KQUEUE_EVENTS) result.changes = newSeqOfCap[KEvent](MAX_KQUEUE_EVENTS)
for i in 0 ..< MAX_KQUEUE_EVENTS: for i in 0 ..< maxFD:
result.fds[i].ident = InvalidIdent result.fds[i].ident = InvalidIdent
result.sock = usock result.sock = usock