summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ConnectionI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-01-07 10:40:46 +0100
committerBenoit Foucher <benoit@zeroc.com>2013-01-07 10:40:46 +0100
commit2df826d5f51275271cd1738a0d945f3e036cd1c5 (patch)
tree5471b19e519c5c78b75031990b1744366983db76 /cpp/src/Ice/ConnectionI.cpp
parentFixed ICE-4933: Added size and replySize fields to dispatch and remote invoca... (diff)
downloadice-2df826d5f51275271cd1738a0d945f3e036cd1c5.tar.bz2
ice-2df826d5f51275271cd1738a0d945f3e036cd1c5.tar.xz
ice-2df826d5f51275271cd1738a0d945f3e036cd1c5.zip
Win32 x64 build fixes
Diffstat (limited to 'cpp/src/Ice/ConnectionI.cpp')
-rw-r--r--cpp/src/Ice/ConnectionI.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/src/Ice/ConnectionI.cpp b/cpp/src/Ice/ConnectionI.cpp
index d2ef8eadba9..1e651481a64 100644
--- a/cpp/src/Ice/ConnectionI.cpp
+++ b/cpp/src/Ice/ConnectionI.cpp
@@ -589,7 +589,8 @@ Ice::ConnectionI::sendRequest(Outgoing* out, bool compress, bool response)
#endif
}
- out->attachRemoteObserver(initConnectionInfo(), _endpoint, requestId, os->b.size() - headerSize - 4);
+ out->attachRemoteObserver(initConnectionInfo(), _endpoint, requestId,
+ static_cast<Int>(os->b.size() - headerSize - 4));
//
// Send the message. If it can't be sent without blocking the message is added
@@ -668,7 +669,8 @@ Ice::ConnectionI::sendAsyncRequest(const OutgoingAsyncPtr& out, bool compress, b
#endif
}
- out->__attachRemoteObserver(initConnectionInfo(), _endpoint, requestId, os->b.size() - headerSize - 4);
+ out->__attachRemoteObserver(initConnectionInfo(), _endpoint, requestId,
+ static_cast<Int>(os->b.size() - headerSize - 4));
AsyncStatus status = AsyncStatusQueued;
try
@@ -974,7 +976,8 @@ Ice::ConnectionI::flushBatchRequests(BatchOutgoing* out)
copy(p, p + sizeof(Int), _batchStream.b.begin() + headerSize);
#endif
- out->attachRemoteObserver(initConnectionInfo(), _endpoint, _batchStream.b.size() - headerSize - 4);
+ out->attachRemoteObserver(initConnectionInfo(), _endpoint,
+ static_cast<Int>(_batchStream.b.size() - headerSize - 4));
_batchStream.swap(*out->os());
@@ -1039,7 +1042,8 @@ Ice::ConnectionI::flushAsyncBatchRequests(const BatchOutgoingAsyncPtr& outAsync)
copy(p, p + sizeof(Int), _batchStream.b.begin() + headerSize);
#endif
- outAsync->__attachRemoteObserver(initConnectionInfo(), _endpoint, 0, _batchStream.b.size() - headerSize - 4);
+ outAsync->__attachRemoteObserver(initConnectionInfo(), _endpoint, 0,
+ static_cast<Int>(_batchStream.b.size() - headerSize - 4));
_batchStream.swap(*outAsync->__getOs());