From 1e2c1d611fa5be971925ff8903ab9a3492c6f5f9 Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Sun, 17 Sep 2023 14:19:29 +0200 Subject: [PATCH] Fix type --- src/xtd.core/src/xtd/net/sockets/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xtd.core/src/xtd/net/sockets/socket.cpp b/src/xtd.core/src/xtd/net/sockets/socket.cpp index f975fad3f351..6bd77f026848 100644 --- a/src/xtd.core/src/xtd/net/sockets/socket.cpp +++ b/src/xtd.core/src/xtd/net/sockets/socket.cpp @@ -829,7 +829,7 @@ size_t socket::select(std::vector& check_read, std::vector& 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--); };