summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ace/Log_Msg.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 7429e0bc417..12edbf07535 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -1436,7 +1436,11 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
case 'z': // ACE_OS::WChar character
{
- wchar_t wtchar = va_arg (argp, ACE_OS::WChar);
+ // On some platforms sizeof (wchar_t) can be 2
+ // on the others 4 ...
+ wchar_t wtchar =
+ ACE_static_cast(wchar_t,
+ va_arg (argp, int));
#if defined (ACE_WIN32)
# if defined (ACE_USES_WCHAR)
ACE_OS::strcpy (fp, ACE_LIB_TEXT ("c"));