Skip to content

Commit

Permalink
Fixing an integral type mismatch warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jul 19, 2023
1 parent acc763d commit a31aa41
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <algorithm>
#include <deque>
#include <list>
#include <memory>
#include <mutex>
#include <set>
Expand Down Expand Up @@ -113,7 +112,7 @@ namespace hpx::parcelset::policies::mpi {
if (request_done_locked(l, hdr_request_, &status))
{
int recv_size = 0;
[[maybe_unused]] int ret =
[[maybe_unused]] int const ret =
MPI_Get_count(&status, MPI_CHAR, &recv_size);
HPX_ASSERT(ret == MPI_SUCCESS);
std::vector<char> recv_header(header_buffer_.begin(),
Expand Down Expand Up @@ -141,8 +140,9 @@ namespace hpx::parcelset::policies::mpi {
{
HPX_ASSERT_OWNS_LOCK(l);
[[maybe_unused]] int const ret = MPI_Irecv(header_buffer_.data(),
header_buffer_.size(), MPI_BYTE, MPI_ANY_SOURCE, 0,
util::mpi_environment::communicator(), &hdr_request_);
static_cast<int>(header_buffer_.size()), MPI_BYTE,
MPI_ANY_SOURCE, 0, util::mpi_environment::communicator(),
&hdr_request_);
HPX_ASSERT_LOCKED(l, ret == MPI_SUCCESS);
}

Expand Down

0 comments on commit a31aa41

Please sign in to comment.