Skip to content

Commit 47c7ebc

Browse files
committed
Compilation warning--
1 parent f9056cb commit 47c7ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/action_api/communicating-custom-actions/CommunicatingActionsController.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace wrench {
7373

7474
/* Now let's create all actions */
7575
WRENCH_INFO("Adding %lu actions (that will communicate with each other) to the job", COMMUNICATOR_SIZE);
76-
for (int i = 0; i < COMMUNICATOR_SIZE; i++) {
76+
for (unsigned long i = 0; i < COMMUNICATOR_SIZE; i++) {
7777

7878
auto lambda_execute = [communicator, storage_service, file](const std::shared_ptr<wrench::ActionExecutor> &action_executor) {
7979
auto my_rank = communicator->join();
@@ -105,7 +105,7 @@ namespace wrench {
105105
// Participate in an all to all communication
106106
unsigned long num_comm_bytes = 1 * MB;
107107
std::map<unsigned long, double> sends;
108-
for (int i = 0; i < num_ranks; i++) {
108+
for (unsigned long i = 0; i < num_ranks; i++) {
109109
if (i != my_rank) {
110110
sends[i] = num_comm_bytes;
111111
}

0 commit comments

Comments
 (0)