summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/background/Transceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/background/Transceiver.cpp')
-rw-r--r--cpp/test/Ice/background/Transceiver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/background/Transceiver.cpp b/cpp/test/Ice/background/Transceiver.cpp
index b59af9a782c..8bbd15f8a93 100644
--- a/cpp/test/Ice/background/Transceiver.cpp
+++ b/cpp/test/Ice/background/Transceiver.cpp
@@ -103,8 +103,8 @@ Transceiver::read(IceInternal::Buffer& buf)
}
}
assert(_readBuffer.i > _readBufferPos);
- size_t requested = buf.b.end() - buf.i;
- size_t available = _readBuffer.i - _readBufferPos;
+ size_t requested = static_cast<size_t>(buf.b.end() - buf.i);
+ size_t available = static_cast<size_t>(_readBuffer.i - _readBufferPos);
assert(available > 0);
if(available >= requested)
{