diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-10-06 16:03:47 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-10-06 16:03:47 +0000 |
commit | f425bbb9525e7c4b10ab0411ef5cce7fbdb0f241 (patch) | |
tree | b07fca125390b694a35042d31e0c3b31a4f6167f /ace/UPIPE_Stream.cpp | |
parent | f5af6f1f0726e78f06386f3450dacf0decb4addb (diff) | |
download | ATCD-f425bbb9525e7c4b10ab0411ef5cce7fbdb0f241.tar.gz |
ChangeLogTag:Sun Oct 6 09:03:28 2002 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'ace/UPIPE_Stream.cpp')
-rw-r--r-- | ace/UPIPE_Stream.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ace/UPIPE_Stream.cpp b/ace/UPIPE_Stream.cpp index 01776729086..1aa48c5f728 100644 --- a/ace/UPIPE_Stream.cpp +++ b/ace/UPIPE_Stream.cpp @@ -102,7 +102,19 @@ ACE_UPIPE_Stream::send (const char *buffer, ACE_Message_Block (n), -1); mb_p->copy (buffer, n); - return this->stream_.put (mb_p, timeout) == -1 ? -1 : n; + return + this->stream_.put (mb_p, timeout) == -1 + ? -1 + : ACE_static_cast (ssize_t, n); // @@ Steve, I silenced the + // warning with a + // static_cast<>. Is this + // okay? BTW, even without the + // cast, isn't this code + // broken? What if 'n" is + // greater than the maximum + // value of a ssize_t? The + // return value won't make any + // sense. } // Receive a buffer. |