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/Ice/TcpTransceiver.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cpp/src/Ice/TcpTransceiver.cpp') diff --git a/cpp/src/Ice/TcpTransceiver.cpp b/cpp/src/Ice/TcpTransceiver.cpp index a7e51ae2dc5..69cfafa432a 100644 --- a/cpp/src/Ice/TcpTransceiver.cpp +++ b/cpp/src/Ice/TcpTransceiver.cpp @@ -78,8 +78,8 @@ IceInternal::TcpTransceiver::shutdownReadWrite() void IceInternal::TcpTransceiver::write(Buffer& buf, int timeout) { - Buffer::Container::difference_type packetSize = - static_cast(buf.b.end() - buf.i); + // Its impossible for the packetSize to be more than an Int. + int packetSize = static_cast(buf.b.end() - buf.i); #ifdef _WIN32 // @@ -185,7 +185,7 @@ IceInternal::TcpTransceiver::write(Buffer& buf, int timeout) if(packetSize > buf.b.end() - buf.i) { - packetSize = static_cast(buf.b.end() - buf.i); + packetSize = static_cast(buf.b.end() - buf.i); } } } @@ -193,8 +193,8 @@ IceInternal::TcpTransceiver::write(Buffer& buf, int timeout) void IceInternal::TcpTransceiver::read(Buffer& buf, int timeout) { - Buffer::Container::difference_type packetSize = - static_cast(buf.b.end() - buf.i); + // Its impossible for the packetSize to be more than an Int. + int packetSize = static_cast(buf.b.end() - buf.i); while(buf.i != buf.b.end()) { @@ -309,7 +309,7 @@ IceInternal::TcpTransceiver::read(Buffer& buf, int timeout) if(packetSize > buf.b.end() - buf.i) { - packetSize = static_cast(buf.b.end() - buf.i); + packetSize = static_cast(buf.b.end() - buf.i); } } } -- cgit v1.2.3