summaryrefslogtreecommitdiff
path: root/TAO/tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp')
-rw-r--r--TAO/tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/TAO/tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp b/TAO/tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp
index eb608bd497c..51bba525e67 100644
--- a/TAO/tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp
+++ b/TAO/tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp
@@ -582,7 +582,7 @@ WUCS4_UTF16::write_measured_wchar_array (ACE_OutputCDR & cdr,
// and we don't want to allocate a new array
for (size_t i = 0; i < sbpos; i++)
{
- char * pchar = static_cast<char *> (&sb[i]);
+ char * pchar = reinterpret_cast<char *> (&sb[i]);
// ACE_CDR::swap_2 (pchar, pchar);
// can't use swap_2 because inplace swaps are not safe
// and work-arounds like copying to another buffer lose