diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-02-27 18:58:35 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-02-27 18:58:35 +0000 |
commit | f0664adc9d5bcda0913e9c67bc49ad963ad80775 (patch) | |
tree | f2fde65a846794bdcda8bb97282aae7e1dd6d506 | |
parent | f950964df9c0f2b42ca3046bb946e4e86702eaca (diff) | |
download | ATCD-f0664adc9d5bcda0913e9c67bc49ad963ad80775.tar.gz |
ChangeLogTag:Thu Feb 27 10:56:01 2003 Ossama Othman <ossama@uci.edu>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | tests/Proactor_Scatter_Gather_Test.cpp | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 1517d65cb2e..438ce498e23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Feb 27 10:56:01 2003 Ossama Othman <ossama@uci.edu> + + * tests/Proactor_Scatter_Gather_Test.cpp (initiate_read_file): + + Explicitly cast return value of ceil() to "size_t". Fixes a + "loss of data" warning. Loss of data isn't an issue in this + case. + Thu Feb 27 10:53:38 2003 Ossama Othman <ossama@uci.edu> * ace/Atomic_Op.cpp (single_cpu_exchange, multi_cpu_exchange): diff --git a/tests/Proactor_Scatter_Gather_Test.cpp b/tests/Proactor_Scatter_Gather_Test.cpp index 406d7784d7b..7d7f516e098 100644 --- a/tests/Proactor_Scatter_Gather_Test.cpp +++ b/tests/Proactor_Scatter_Gather_Test.cpp @@ -1126,8 +1126,8 @@ Sender::initiate_read_file (void) static const size_t file_size = ACE_OS::filesize (input_file); - static const size_t number_of_chunks_needed_for_file - = ACE_OS::ceil ((double) file_size / chunk_size); + static const size_t number_of_chunks_needed_for_file = + ACE_static_cast (size_t, ACE_OS::ceil ((double) file_size / chunk_size)); size_t relevant_number_of_chunks = ACE_MIN ((size_t)ACE_IOV_MAX, |