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 2c403c7d3c4..205d7ce1854 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 > 0x7f) + if (v > 127) { - write(Byte(0xff)); + write(Byte(-1)); write(v); } else @@ -209,7 +209,7 @@ IceInternal::BasicStream::readSize(Ice::Int& v) { Byte b; read(b); - if (b > Byte(0x7f)) + if (b < 0) { read(v); } |