summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_State.cpp
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2001-07-06 21:04:09 +0000
committerbala <balanatarajan@users.noreply.github.com>2001-07-06 21:04:09 +0000
commit9cc7923af04a3dfbc8f51fbf047541b977f7eae0 (patch)
treef11ac7ef0d90c5471e559717094be3154bf1f0ab /TAO/tao/GIOP_Message_State.cpp
parent671edc7a6873c74c1502a58df64a3e7117beb024 (diff)
downloadATCD-9cc7923af04a3dfbc8f51fbf047541b977f7eae0.tar.gz
ChangeLogTag: Fri Jul 6 16:01:45 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/GIOP_Message_State.cpp')
-rw-r--r--TAO/tao/GIOP_Message_State.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/TAO/tao/GIOP_Message_State.cpp b/TAO/tao/GIOP_Message_State.cpp
index 36ebdcd41ae..5c736573a2b 100644
--- a/TAO/tao/GIOP_Message_State.cpp
+++ b/TAO/tao/GIOP_Message_State.cpp
@@ -248,22 +248,27 @@ TAO_GIOP_Message_State::read_ulong (char *rd_ptr)
{
CORBA::ULong x = 0;
- size_t msg_size = 4;
+ // @@todo: This is so funny.. I am not sure why and with what in
+ // mind I had aligned this to 4 byte boundary when I was reading
+ // from the stream. Maybe when I was a kid:-). This definitely
+ // creates problems. Maybe we should revisit this if there is a
+ // pellmell.
+ // size_t msg_size = 4;
- char *buf = ACE_ptr_align_binary (rd_ptr,
- msg_size);
+ // char *buf = ACE_ptr_align_binary (rd_ptr,
+ // msg_size);
#if !defined (ACE_DISABLE_SWAP_ON_READ)
if (!(this->byte_order_ != ACE_CDR_BYTE_ORDER))
{
- x = *ACE_reinterpret_cast (ACE_CDR::ULong*, buf);
+ x = *ACE_reinterpret_cast (ACE_CDR::ULong*, rd_ptr);
}
else
{
- ACE_CDR::swap_4 (buf, ACE_reinterpret_cast (char*, &x));
+ ACE_CDR::swap_4 (rd_ptr, ACE_reinterpret_cast (char*, &x));
}
#else
- x = *ACE_reinterpret_cast(ACE_CDR::ULong*, buf);
+ x = *ACE_reinterpret_cast(ACE_CDR::ULong*, rd_ptr);
#endif /* ACE_DISABLE_SWAP_ON_READ */
return x;