From 02a6ddf010b763c6b08e706bf0c771c0fd250d25 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 5 Jul 2009 20:37:08 +0000 Subject: [PATCH] Fix a comparison operator on win32 --- source/streamsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/streamsocket.cpp b/source/streamsocket.cpp index 48d06a7..56df993 100644 --- a/source/streamsocket.cpp +++ b/source/streamsocket.cpp @@ -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) -- 2.45.2