mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 21:43:33 +00:00
This commit is contained in:
committed by
Andreas Rumpf
parent
1fc3a68205
commit
57c3b807d0
@@ -114,7 +114,7 @@ proc newSelector*[T](): Selector[T] =
|
||||
result.fds = newSeq[SelectorKey[T]](maxFD)
|
||||
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.sock = usock
|
||||
|
||||
Reference in New Issue
Block a user