summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 5f4f6dfb6f2..53152fd03d8 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -634,11 +634,11 @@ IceInternal::ThreadPool::read(const EventHandlerPtr& handler)
assert(stream.i == stream.b.end());
}
- int pos = stream.i - stream.b.begin();
+ ptrdiff_t pos = stream.i - stream.b.begin();
assert(pos >= headerSize);
stream.i = stream.b.begin();
MagicBytes m(sizeof(magic), 0);
- stream.readBlob(m, sizeof(magic));
+ stream.readBlob(m, static_cast<Int>(sizeof(magic)));
if(!equal(m.begin(), m.end(), magic))
{
BadMagicException ex(__FILE__, __LINE__);