diff options
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index f8c8226b5e7..3ee3094029a 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -193,9 +193,9 @@ IceInternal::BasicStream::skipEncaps() void IceInternal::BasicStream::writeSize(Int v) { - if (v >= 0xff) + if (v > 0x7f) { - write(Byte(0xff)); + write(Byte(255)); write(v); } else @@ -209,7 +209,7 @@ IceInternal::BasicStream::readSize(Ice::Int& v) { Byte b; read(b); - if (b == Byte(0xff)) + if (b > Byte(0x7f)) { read(v); } |