summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/ConnectorI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2006-06-12 20:15:48 +0000
committerMatthew Newhook <matthew@zeroc.com>2006-06-12 20:15:48 +0000
commit4f39b1d1aaa0bc067ba81bf12d1c29b320656116 (patch)
tree2aaf7591357e35497d73fbe9187a46b5c7808255 /cpp/src/IceSSL/ConnectorI.cpp
parentMore alphabetical checks (diff)
downloadice-4f39b1d1aaa0bc067ba81bf12d1c29b320656116.tar.bz2
ice-4f39b1d1aaa0bc067ba81bf12d1c29b320656116.tar.xz
ice-4f39b1d1aaa0bc067ba81bf12d1c29b320656116.zip
fixes for 64 bit windows build.
Diffstat (limited to 'cpp/src/IceSSL/ConnectorI.cpp')
-rw-r--r--cpp/src/IceSSL/ConnectorI.cpp3
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);