diff options
Diffstat (limited to 'TAO/tao')
-rw-r--r-- | TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp index 442b5e99088..d84f9f00c52 100644 --- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp @@ -563,14 +563,16 @@ TAO_TypeCodeFactory_i::create_recursive_tc ( list); TAO_OutputCDR cdr; + CORBA::Long max_neg = 0xffffffff; // Negative offset value, updated later with the actual value. - cdr << 0xffffffff; + cdr << max_neg; // In an embedded recursive typecode, the indirection // value -1 goes where the TCKind would go for any // other embedded typecode. - CORBA::TCKind rec_kind = (CORBA::TCKind) 0xffffffff; + CORBA::TCKind rec_kind = + ACE_static_cast (CORBA::TCKind, max_neg); return this->assemble_tc (cdr, rec_kind, |