]> git.tdb.fi Git - libs/net.git/commitdiff
Fix a comparison operator on win32
authorMikko Rasa <tdb@tdb.fi>
Sun, 5 Jul 2009 20:37:08 +0000 (20:37 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 5 Jul 2009 20:37:08 +0000 (20:37 +0000)
source/streamsocket.cpp

index 48d06a79ccebab9809d3c2b2cf65988c93033a5c..56df99335fb6c0b19f84264e73aa10f94a0ba248 100644 (file)
@@ -107,7 +107,7 @@ int StreamSocket::connect(const SockAddr &addr)
 
 #ifdef WIN32
        int err=WSAConnect(handle, &sa, size, 0, 0, 0, 0);
-       if(err=SOCKET_ERROR)
+       if(err==SOCKET_ERROR)
        {
                int err_code=WSAGetLastError();
                if(err_code==WSAEWOULDBLOCK)