From ec41312e1b5c1a08fc43364cb7a9d33ba0414602 Mon Sep 17 00:00:00 2001 From: elliott_c Date: Mon, 5 May 2003 18:35:26 +0000 Subject: ChangeLogTag: Mon May 5 13:34:46 2003 Chad Elliott --- protocols/ace/RMCast/RMCast_Fragment.cpp | 5 +++-- protocols/ace/RMCast/RMCast_IO_UDP.cpp | 4 ++-- protocols/ace/RMCast/RMCast_Partial_Message.cpp | 3 ++- protocols/ace/RMCast/RMCast_Reassembly.cpp | 4 +++- 4 files changed, 10 insertions(+), 6 deletions(-) (limited to 'protocols') diff --git a/protocols/ace/RMCast/RMCast_Fragment.cpp b/protocols/ace/RMCast/RMCast_Fragment.cpp index 7da6f4bf1a5..2285fcb0a49 100644 --- a/protocols/ace/RMCast/RMCast_Fragment.cpp +++ b/protocols/ace/RMCast/RMCast_Fragment.cpp @@ -36,7 +36,7 @@ ACE_RMCast_Fragment::data (ACE_RMCast::Data &received_data) ACE_Message_Block *mb = data.payload; // @@ We should keep the total size precomputed - data.total_size = mb->total_length (); + data.total_size = ACE_static_cast (ACE_UINT32, mb->total_length ()); // We must leave room for the header #if defined (ACE_HAS_BROKEN_DGRAM_SENDV) @@ -130,7 +130,8 @@ ACE_RMCast_Fragment::data (ACE_RMCast::Data &received_data) return -1; // adjust the offset - data.fragment_offset += max_fragment_payload; + data.fragment_offset += ACE_static_cast (ACE_UINT32, + max_fragment_payload); // Now compute how much data is left in the last message // block, to check if we should continue sending it... diff --git a/protocols/ace/RMCast/RMCast_IO_UDP.cpp b/protocols/ace/RMCast/RMCast_IO_UDP.cpp index 315d5c11f82..cfed8a53d98 100644 --- a/protocols/ace/RMCast/RMCast_IO_UDP.cpp +++ b/protocols/ace/RMCast/RMCast_IO_UDP.cpp @@ -58,7 +58,7 @@ ACE_RMCast_IO_UDP::handle_events (ACE_Time_Value *tv) ACE_Countdown_Time countdown (tv); - int r = ACE_OS::select (int(h) + 1, + int r = ACE_OS::select (int(size_t(h)) + 1, handle_set, 0, 0, tv); if (r == -1) @@ -264,7 +264,7 @@ ACE_RMCast_IO_UDP::send_data (ACE_RMCast::Data &data, for (const ACE_Message_Block *i = mb; i != 0; i = i->cont ()) { iov[iovcnt].iov_base = i->rd_ptr (); - iov[iovcnt].iov_len = i->length (); + iov[iovcnt].iov_len = ACE_static_cast (u_long, i->length ()); iovcnt++; if (iovcnt >= IOV_MAX) return -1; diff --git a/protocols/ace/RMCast/RMCast_Partial_Message.cpp b/protocols/ace/RMCast/RMCast_Partial_Message.cpp index 5de2e660a11..3d7b85d8871 100644 --- a/protocols/ace/RMCast/RMCast_Partial_Message.cpp +++ b/protocols/ace/RMCast/RMCast_Partial_Message.cpp @@ -68,7 +68,8 @@ ACE_RMCast_Partial_Message::fragment_received (ACE_UINT32 message_size, // iteration if the ACE_UINT32 start = offset; - ACE_UINT32 end = offset + total_length; + ACE_UINT32 end = ACE_static_cast (ACE_UINT32, + offset + total_length); while (start != end && this->hole_count_ != 0) { diff --git a/protocols/ace/RMCast/RMCast_Reassembly.cpp b/protocols/ace/RMCast/RMCast_Reassembly.cpp index 9e4e9103c45..e16fb368acf 100644 --- a/protocols/ace/RMCast/RMCast_Reassembly.cpp +++ b/protocols/ace/RMCast/RMCast_Reassembly.cpp @@ -100,7 +100,9 @@ ACE_RMCast_Reassembly::data (ACE_RMCast::Data &data) ACE_RMCast::Data downstream_data; downstream_data.source = data.source; downstream_data.sequence_number = data.sequence_number; - downstream_data.total_size = message->message_body ()->length (); + downstream_data.total_size = ACE_static_cast( + ACE_UINT32, + message->message_body ()->length ()); downstream_data.fragment_offset = 0; downstream_data.payload = message->message_body (); -- cgit v1.2.1