summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/BasicStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r--cpp/src/Ice/BasicStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index 3ee3094029a..2c403c7d3c4 100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
@@ -195,7 +195,7 @@ IceInternal::BasicStream::writeSize(Int v)
{
if (v > 0x7f)
{
- write(Byte(255));
+ write(Byte(0xff));
write(v);
}
else
@@ -215,7 +215,7 @@ IceInternal::BasicStream::readSize(Ice::Int& v)
}
else
{
- v = static_cast<Int>(b);
+ v = static_cast<Int>(b);
}
}