diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index 1e0c92503..54f9b7f8b 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -454,7 +454,7 @@ public: { PhySocketImpl &sws = *(reinterpret_cast(sock)); #if defined(_WIN32) || defined(_WIN64) - ssize_t sent = ((long)::sendto(sws.sock,reinterpret_cast(data),len,0,remoteAddress,(remoteAddress->sa_family == AF_INET6) ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in)) == (long)len); + int sent = ((long)::sendto(sws.sock,reinterpret_cast(data),len,0,remoteAddress,(remoteAddress->sa_family == AF_INET6) ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in)) == (long)len); Metrics::udp_send += sent; return sent; #else