diff options
author | Michi Henning <michi@zeroc.com> | 2002-11-15 04:59:24 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-11-15 04:59:24 +0000 |
commit | 40d469f4080545cb46ccb5a4ab8c3eb95ef099f0 (patch) | |
tree | 6f569988975de7417782d139a029b91ac6a9e6f8 /cpp/src/Ice/Connection.cpp | |
parent | Added an include for Application.h (diff) | |
download | ice-40d469f4080545cb46ccb5a4ab8c3eb95ef099f0.tar.bz2 ice-40d469f4080545cb46ccb5a4ab8c3eb95ef099f0.tar.xz ice-40d469f4080545cb46ccb5a4ab8c3eb95ef099f0.zip |
Windows didn't like the assert as it was and complained, so changed the
assertion to omit the declaration of pos.
Diffstat (limited to 'cpp/src/Ice/Connection.cpp')
-rw-r--r-- | cpp/src/Ice/Connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp index 20403226167..58346dc19a7 100644 --- a/cpp/src/Ice/Connection.cpp +++ b/cpp/src/Ice/Connection.cpp @@ -82,8 +82,8 @@ IceInternal::Connection::validate() is.b.resize(headerSize); is.i = is.b.begin(); _transceiver->read(is, _endpoint->timeout()); - assert(is.i == is.b.end()); - assert((int pos = is.i - is.b.begin(), pos >= headerSize)); + assert(is.i == is.b.end()); + assert(is.i - is.b.begin() >= headerSize); is.i = is.b.begin(); Byte protVer; is.read(protVer); |