Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Windows] Fix a range error in std.socket.SocketSet.add()
`fds()` returns a slice of size `count()`, and since fds() is invoked before evaluating the index expression (incl. increasing the count), its length is the old count, so we cannot assign to the element at index = old count, that's 1 past the end.
- Loading branch information