diff options
Diffstat (limited to 'cpp/src/IceSSL/ConnectorI.cpp')
-rw-r--r-- | cpp/src/IceSSL/ConnectorI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IceSSL/ConnectorI.cpp b/cpp/src/IceSSL/ConnectorI.cpp index 11f9c32f3ae..2fac1c00d14 100644 --- a/cpp/src/IceSSL/ConnectorI.cpp +++ b/cpp/src/IceSSL/ConnectorI.cpp @@ -43,7 +43,8 @@ IceSSL::ConnectorI::connect(int timeout) IceInternal::setBlock(fd, false); IceInternal::doConnect(fd, _addr, timeout); - BIO* bio = BIO_new_socket(fd, BIO_CLOSE); + // This static_cast is necessary due to 64bit windows. There SOCKET is a non-int type. + BIO* bio = BIO_new_socket(static_cast<int>(fd), BIO_CLOSE); if(!bio) { IceInternal::closeSocketNoThrow(fd); |