Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
removed random seed in order to test result
[simgrid.git] / teshsuite / xbt / parmap_test / parmap_test.cpp
index 30da8b5dd734aeaf7898eb51208215aed811111f..3da1c4a467a0d4b9920af5b17222728737d5f7d3 100644 (file)
@@ -75,7 +75,7 @@ static int test_parmap_extended(e_xbt_parmap_mode_t mode)
     parmap.apply(fun_get_id, data);
 
     std::sort(begin(a), end(a));
-    unsigned count = std::distance(begin(a), std::unique(begin(a), end(a)));
+    unsigned count = static_cast<unsigned>(std::distance(begin(a), std::unique(begin(a), end(a))));
     if (count != num_workers) {
       XBT_CRITICAL("only %u/%u threads did some work", count, num_workers);
       ret = 1;