summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/BasicStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/BasicStream.h')
-rw-r--r--cpp/include/Ice/BasicStream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/include/Ice/BasicStream.h b/cpp/include/Ice/BasicStream.h
index a6e75c7fbd5..75e43ad8026 100644
--- a/cpp/include/Ice/BasicStream.h
+++ b/cpp/include/Ice/BasicStream.h
@@ -400,14 +400,14 @@ public:
Ice::Int readAndCheckSeqSize(int);
- int startSize()
+ size_type startSize()
{
- int pos = static_cast<Ice::Int>(b.size());
+ size_type pos = b.size();
write(Ice::Int(0));
return pos;
}
- void endSize(int pos)
+ void endSize(size_type pos)
{
assert(pos >= 0);
rewrite(static_cast<Ice::Int>(b.size()) - pos - 4, pos);