diff options
author | gokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-25 12:17:29 +0000 |
---|---|---|
committer | gokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-25 12:17:29 +0000 |
commit | 0092820f10f722881b38433513c7ccedf3ba5cb9 (patch) | |
tree | 66e18d5e81093ef4406f79a62cf0a52a8bc0bdbe /TAO/tao/decode.cpp | |
parent | 9df0b0f9e6fc02bacea086718b4ffb400f1c401f (diff) | |
download | ATCD-0092820f10f722881b38433513c7ccedf3ba5cb9.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tao/decode.cpp')
-rw-r--r-- | TAO/tao/decode.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/tao/decode.cpp b/TAO/tao/decode.cpp index 5b56dc5cfa3..c0acae85692 100644 --- a/TAO/tao/decode.cpp +++ b/TAO/tao/decode.cpp @@ -839,15 +839,14 @@ TAO_Marshal_Union::decode (CORBA::TypeCode_ptr tc, if (env.exception () == 0) { // decode the discriminator value - retval = stream->decode (discrim_tc, data, data2, env); + discrim_val = base_union->_discriminant (); + retval = stream->decode (discrim_tc, discrim_val, data2, env); if (retval == CORBA::TypeCode::TRAVERSE_CONTINUE) { discrim_size_with_pad = tc->TAO_discrim_pad_size (env); if (env.exception () == 0) { - discrim_val = data; // save the pointer to the discriminator - // value // move the pointer to point to the actual value data = (char *) data + discrim_size_with_pad; data2 = (char *) data2 + discrim_size_with_pad; |