From e91001ecb078265c9b704f1e301834465b56fb38 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Wed, 31 Oct 2018 11:16:06 +0100 Subject: [PATCH] Fix signed/unsigned comparison warnings --- tests/mpi_test_Messenger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/mpi_test_Messenger.cpp b/tests/mpi_test_Messenger.cpp index 8fdaac1b9..f6ad79c21 100644 --- a/tests/mpi_test_Messenger.cpp +++ b/tests/mpi_test_Messenger.cpp @@ -46,7 +46,8 @@ void test_allToAll() auto exchanged_array = parallel::allToAll(data_array); for (size_t i=0; i< data_array.size(); ++i) { - REQUIRE(exchanged_array[i] == i); + const size_t value = exchanged_array[i]; + REQUIRE(value == i); } } -- GitLab