]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/windows/socket.cpp
Use size_t to represent sizes
[libs/net.git] / source / net / windows / socket.cpp
index 5094cc45644f929d9deb436ccdf0efc27daf0be0..dfcff623c328f4f03b2a7129a1931891a80c140b 100644 (file)
@@ -6,6 +6,8 @@
 #include "socket.h"
 #include "socket_private.h"
 
+using namespace std;
+
 namespace {
 
 class WinSockHelper
@@ -85,7 +87,7 @@ int Socket::Private::get_option(int level, int optname, void *optval, socklen_t
 }
 
 
-unsigned check_sys_error(int ret, const char *func)
+size_t check_sys_error(make_signed<size_t>::type ret, const char *func)
 {
        if(ret<0)
        {