X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/62dceedf62ca9df19fd3afee1458e21d9f211c5a..3efa482f86d7828379214dedabbcd76c145103d5:/examples/smpi/smpi_s4u_masterslave/masterslave_mailbox_smpi.cpp diff --git a/examples/smpi/smpi_s4u_masterslave/masterslave_mailbox_smpi.cpp b/examples/smpi/smpi_s4u_masterslave/masterslave_mailbox_smpi.cpp index a786889f33..6ed9f330e9 100644 --- a/examples/smpi/smpi_s4u_masterslave/masterslave_mailbox_smpi.cpp +++ b/examples/smpi/smpi_s4u_masterslave/masterslave_mailbox_smpi.cpp @@ -14,9 +14,9 @@ static void master(std::vector args) { xbt_assert(args.size() > 4, "The master function expects at least 3 arguments"); - long tasks_count = std::stol(args[1]); - double compute_cost = std::stod(args[2]); - double communication_cost = std::stod(args[3]); + long tasks_count = std::stol(args[1]); + double compute_cost = std::stod(args[2]); + long communication_cost = std::stol(args[3]); std::vector workers; for (unsigned int i = 4; i < args.size(); i++) workers.push_back(simgrid::s4u::Mailbox::by_name(args[i]));