summaryrefslogtreecommitdiff
path: root/TAO/tao/skip.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-13 12:01:53 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-13 12:01:53 +0000
commite6877e1b4fe0ab93c5df21f3ff481925223390b7 (patch)
tree92eb3c1417a5d4c89750f28009af38d7266e0906 /TAO/tao/skip.cpp
parenta282a02479baa2bf2fc74c33132ebd24d0de96cc (diff)
downloadATCD-e6877e1b4fe0ab93c5df21f3ff481925223390b7.tar.gz
changed ~0 to ~0u to avoid signed/unsigned comparisons
Diffstat (limited to 'TAO/tao/skip.cpp')
-rw-r--r--TAO/tao/skip.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO/tao/skip.cpp b/TAO/tao/skip.cpp
index cd9bb9c4484..8bb1892fe62 100644
--- a/TAO/tao/skip.cpp
+++ b/TAO/tao/skip.cpp
@@ -137,7 +137,7 @@ TAO_Marshal_TypeCode::skip (CORBA::TypeCode_ptr,
// constants. We use those to reduce memory consumption and
// heap access ... also, to speed things up!
if ((kind < CORBA::TC_KIND_COUNT) ||
- (kind == ~(CORBA::ULong)0))
+ (kind == ~0u))
{
// Either a non-constant typecode or an indirected typecode.
switch (kind)
@@ -156,7 +156,7 @@ TAO_Marshal_TypeCode::skip (CORBA::TypeCode_ptr,
break;
// Indirected typecodes, illegal at "top level".
- case ~0:
+ case ~0u:
{
// skip the long indicating the encapsulation offset,
continue_skipping = stream->skip_long ();
@@ -269,7 +269,7 @@ TAO_Marshal_ObjRef::skip (CORBA::TypeCode_ptr,
// get the profile ID tag
if ( (continue_skipping = stream->read_ulong (tag)) == CORBA::B_FALSE)
- continue;
+ continue;
if (tag != TAO_IOP_TAG_INTERNET_IOP)
{
@@ -282,22 +282,22 @@ TAO_Marshal_ObjRef::skip (CORBA::TypeCode_ptr,
// context for it, and tell the "parent" stream that this data
// isn't part of it any more.
- CORBA::ULong encap_len;
+ CORBA::ULong encap_len;
// ProfileData is encoded as a sequence of octet. So first get
// the length of the sequence.
// Create the decoding stream from the encapsulation in the
// buffer, and skip the encapsulation.
- if ( (continue_skipping = stream->read_ulong (encap_len)) == CORBA::B_FALSE)
- continue;
+ if ( (continue_skipping = stream->read_ulong (encap_len)) == CORBA::B_FALSE)
+ continue;
TAO_InputCDR str (*stream, encap_len);
- continue_skipping =
- str.good_bit ()
- && stream->skip_bytes (encap_len);
+ continue_skipping =
+ str.good_bit ()
+ && stream->skip_bytes (encap_len);
- if (!continue_skipping)
- continue;
+ if (!continue_skipping)
+ continue;
// Read and verify major, minor versions, ignoring IIOP
// profiles whose versions we don't understand.