]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/resolve.cpp
Fix 64-bit compilation
[libs/net.git] / source / net / resolve.cpp
index 8f5c97b9baa25f6fdd2d32ce74929260772789b9..097fea355111e82b34020a8c867f7821da0f202d 100644 (file)
@@ -56,13 +56,13 @@ SockAddr *resolve(const string &str, Family family)
        {
                unsigned bracket = str.find(']');
                host = str.substr(1, bracket-1);
-               unsigned colon = str.find(':', bracket);
+               string::size_type colon = str.find(':', bracket);
                if(colon!=string::npos)
                        serv = str.substr(colon+1);
        }
        else
        {
-               unsigned colon = str.find(':');
+               string::size_type colon = str.find(':');
                if(colon!=string::npos)
                {
                        host = str.substr(0, colon);