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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index c9956a43bb1..4f3414ac270 100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
@@ -296,9 +296,9 @@ IceInternal::BasicStream::writeSize(Int v)
void
IceInternal::BasicStream::readSize(Ice::Int& v)
{
- Byte b;
- read(b);
- if(b < 0)
+ Byte byte;
+ read(byte);
+ if(byte < 0)
{
read(v);
if(v < 0)
@@ -308,7 +308,7 @@ IceInternal::BasicStream::readSize(Ice::Int& v)
}
else
{
- v = static_cast<Int>(b);
+ v = static_cast<Int>(byte);
}
}