summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_State.cpp
diff options
context:
space:
mode:
authormcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-06 13:52:31 +0000
committermcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-06 13:52:31 +0000
commit239f2751c612836d6a4b1900a955f92ecc61e6dd (patch)
tree43bce511980016631a12986f335019da04190cd3 /TAO/tao/GIOP_Message_State.cpp
parent543c5948eb27c76d9bb8560ba1cab8417f6a0a83 (diff)
downloadATCD-239f2751c612836d6a4b1900a955f92ecc61e6dd.tar.gz
Sat Feb 6 13:50:43 UTC 2010 Martin Corino <mcorino@remedy.nl>
* tao/GIOP_Message_State.cpp: Fixed strict aliasing warning.
Diffstat (limited to 'TAO/tao/GIOP_Message_State.cpp')
-rw-r--r--TAO/tao/GIOP_Message_State.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/GIOP_Message_State.cpp b/TAO/tao/GIOP_Message_State.cpp
index 288a224bb88..c4265219b9d 100644
--- a/TAO/tao/GIOP_Message_State.cpp
+++ b/TAO/tao/GIOP_Message_State.cpp
@@ -215,7 +215,8 @@ TAO_GIOP_Message_State::read_ulong (const char *rd_ptr) const
#if !defined (ACE_DISABLE_SWAP_ON_READ)
if (!(this->byte_order_ != ACE_CDR_BYTE_ORDER))
{
- x = *reinterpret_cast<ACE_CDR::ULong*> (buf);
+ ACE_CDR::ULong* pul = reinterpret_cast<ACE_CDR::ULong*> (buf);
+ x = *pul;
}
else
{