Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Sep 17, 2023
1 parent ddf80a7 commit 1e2c1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xtd.core/src/xtd/net/sockets/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ size_t socket::select(std::vector<socket>& check_read, std::vector<socket>& chec
if (status < 0) throw socket_exception(get_last_error_(), csf_);

auto update_check_sockets = [](auto & sockets, auto & handles) {
for (auto i = 0ul, j = 0_sz; i < handles.size() && j < sockets.size(); ++i, ++j)
for (auto i = 0_sz, j = 0_sz; i < handles.size() && j < sockets.size(); ++i, ++j)
if (handles[i] == 0)
sockets.erase(sockets.begin() + j--);
};
Expand Down

0 comments on commit 1e2c1d6

Please sign in to comment.