From 4f39b1d1aaa0bc067ba81bf12d1c29b320656116 Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Mon, 12 Jun 2006 20:15:48 +0000 Subject: fixes for 64 bit windows build. --- cpp/src/IceSSL/ConnectorI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/IceSSL/ConnectorI.cpp') 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(fd), BIO_CLOSE); if(!bio) { IceInternal::closeSocketNoThrow(fd); -- cgit v1.2.3