diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-05-24 05:02:23 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-05-24 05:02:23 +0000 |
commit | 5df72a8f94fba03a43284d54589fdbbe80ef478f (patch) | |
tree | 64cf884612f3f2b82dd1d3c6f64748fa0d685e54 | |
parent | 380688acc5ed8bbbd62f8a42742e7acc5cd1fa61 (diff) | |
download | ATCD-5df72a8f94fba03a43284d54589fdbbe80ef478f.tar.gz |
Thu May 24 04:58:14 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
-rw-r--r-- | ACE/ChangeLog | 19 | ||||
-rw-r--r-- | 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 <abdullah.sowayan@lmco.com> + + * 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 <shuston@riverace.com> * ace/Pipe.cpp (send, recv): @@ -126,13 +135,13 @@ Wed May 23 07:17:55 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> Wed May 23 05:12:04 2007 Ossama Othman <ossama othman at symantec dot com> - * 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 <ops@iki.fi> 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); |