diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-16 16:52:18 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-16 16:52:18 +0000 |
commit | f63ca383842037310a3f4dc4e79d528974a5a840 (patch) | |
tree | 2510dadba1998fc2661aacccd721dc8a666c9eae | |
parent | 00c8fff3acf728b9ef297ebff5afd1345e365a45 (diff) | |
download | ATCD-f63ca383842037310a3f4dc4e79d528974a5a840.tar.gz |
ChangeLogTag:Fri Jul 16 11:50:24 1999 Nanbor Wang <nanbor@cs.wustl.edu>
-rw-r--r-- | ace/Log_Msg.cpp | 2 | ||||
-rw-r--r-- | tests/Basic_Types_Test.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index d84a05bf72f..84ed0583f92 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -851,7 +851,7 @@ ACE_Log_Msg::log (const ASYS_TCHAR *format_str, ACE_Log_Msg::msg_off_ = bp - this->msg_; type = SKIP_SPRINTF; - ACE_reinterpret_cast (PTF, va_arg (argp, long))(); + (*va_arg (argp, PTF))(); if (ACE_BIT_ENABLED (ACE_Log_Msg::flags_, ACE_Log_Msg::SILENT)) { diff --git a/tests/Basic_Types_Test.cpp b/tests/Basic_Types_Test.cpp index 3bf1b41653e..de8bf8d898c 100644 --- a/tests/Basic_Types_Test.cpp +++ b/tests/Basic_Types_Test.cpp @@ -153,11 +153,11 @@ main (int, ASYS_TCHAR *[]) else ACE_ERROR ((LM_ERROR, ASYS_TEXT ("sizeof (long) != sizeof (void*)\n"))); - // ACE assumes sizeof (long) == sizeof (a_function_pointer) - if (sizeof (long) == sizeof (a_function_pointer)) - ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("sizeof (long) == sizeof (a_function_pointer)\n"))); + // ACE assumes sizeof (long) >= sizeof (a_function_pointer) + if (sizeof (long) >= sizeof (a_function_pointer)) + ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("sizeof (long) >= sizeof (a_function_pointer)\n"))); else - ACE_ERROR ((LM_ERROR, ASYS_TEXT ("sizeof (long) != sizeof (a_function_pointer)\n"))); + ACE_ERROR ((LM_ERROR, ASYS_TEXT ("sizeof (long) < sizeof (a_function_pointer)\n"))); #if defined (ACE_LITTLE_ENDIAN) ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("little endian\n"))); |