summaryrefslogtreecommitdiff
path: root/TAO/tao/decode.cpp
diff options
context:
space:
mode:
authorgokhale <asgokhale@users.noreply.github.com>1998-06-25 12:17:29 +0000
committergokhale <asgokhale@users.noreply.github.com>1998-06-25 12:17:29 +0000
commit5fed6e0b8d156b8f87ef8489e241ffb32e66e865 (patch)
tree66e18d5e81093ef4406f79a62cf0a52a8bc0bdbe /TAO/tao/decode.cpp
parentf3822c777ca49e50505b5b7d1239c8828ede00e9 (diff)
downloadATCD-5fed6e0b8d156b8f87ef8489e241ffb32e66e865.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/tao/decode.cpp')
-rw-r--r--TAO/tao/decode.cpp5
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;