From eeffa6d085866d553990e6b9ca84d22f30c31eb3 Mon Sep 17 00:00:00 2001 From: Henri Casanova Date: Thu, 20 Jul 2023 03:20:20 -1000 Subject: [PATCH] Compilation warning-- --- .../CommunicatingActionsController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/action_api/communicating-custom-actions/CommunicatingActionsController.cpp b/examples/action_api/communicating-custom-actions/CommunicatingActionsController.cpp index 805042064b..59478d9970 100755 --- a/examples/action_api/communicating-custom-actions/CommunicatingActionsController.cpp +++ b/examples/action_api/communicating-custom-actions/CommunicatingActionsController.cpp @@ -73,7 +73,7 @@ namespace wrench { /* Now let's create all actions */ WRENCH_INFO("Adding %lu actions (that will communicate with each other) to the job", COMMUNICATOR_SIZE); - for (int i = 0; i < COMMUNICATOR_SIZE; i++) { + for (unsigned long i = 0; i < COMMUNICATOR_SIZE; i++) { auto lambda_execute = [communicator, storage_service, file](const std::shared_ptr &action_executor) { auto my_rank = communicator->join(); @@ -105,7 +105,7 @@ namespace wrench { // Participate in an all to all communication unsigned long num_comm_bytes = 1 * MB; std::map sends; - for (int i = 0; i < num_ranks; i++) { + for (unsigned long i = 0; i < num_ranks; i++) { if (i != my_rank) { sends[i] = num_comm_bytes; }