From 5df72a8f94fba03a43284d54589fdbbe80ef478f Mon Sep 17 00:00:00 2001 From: Abdullah Sowayan Date: Thu, 24 May 2007 05:02:23 +0000 Subject: Thu May 24 04:58:14 UTC 2007 Abdullah Sowayan --- ACE/ChangeLog | 19 ++++++++++++++----- ACE/ace/Pipe.cpp | 5 +++-- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/ACE/ChangeLog b/ACE/ChangeLog index e3f240a1ded..a0b46f807c8 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,12 @@ +Thu May 24 04:58:14 UTC 2007 Abdullah Sowayan + + * ace/Pipe.cpp: + + ACE_Utils::truncate_cast requires including Truncate.h. Added missing + include file. + + Use preincrement instead of postincrement operator. + Wed May 23 22:00:32 UTC 2007 Steve Huston * ace/Pipe.cpp (send, recv): @@ -126,13 +135,13 @@ Wed May 23 07:17:55 UTC 2007 Johnny Willemsen Wed May 23 05:12:04 2007 Ossama Othman - * ace/OS_NS_math.h (ace_log2_helper): + * ace/OS_NS_math.h (ace_log2_helper): - Added comments about what the ACE_LACKS_LOG2 case actually - does. + Added comments about what the ACE_LACKS_LOG2 case actually + does. - Store precomputed value of 1/log(2.0) to save an expensive - division and computing log(2.0) in each call. + Store precomputed value of 1/log(2.0) to save an expensive + division and computing log(2.0) in each call. Tue May 22 17:41:20 UTC 2007 Olli Savia diff --git a/ACE/ace/Pipe.cpp b/ACE/ace/Pipe.cpp index 99f38a02dea..9aaedb35949 100644 --- a/ACE/ace/Pipe.cpp +++ b/ACE/ace/Pipe.cpp @@ -6,6 +6,7 @@ #include "ace/Log_Msg.h" #include "ace/OS_NS_sys_socket.h" #include "ace/OS_Memory.h" +#include "ace/Truncate.h" #if defined (ACE_HAS_STREAM_PIPES) || defined (__QNX__) # include "ace/OS_NS_unistd.h" @@ -272,7 +273,7 @@ ACE_Pipe::send (size_t n, ...) const va_start (argp, n); - for (size_t i = 0; i < total_tuples; i++) + for (size_t i = 0; i < total_tuples; ++i) { iovp[i].iov_base = va_arg (argp, char *); iovp[i].iov_len = va_arg (argp, int); @@ -318,7 +319,7 @@ ACE_Pipe::recv (size_t n, ...) const va_start (argp, n); - for (size_t i = 0; i < total_tuples; i++) + for (size_t i = 0; i < total_tuples; ++i) { iovp[i].iov_base = va_arg (argp, char *); iovp[i].iov_len = va_arg (argp, int); -- cgit v1.2.1