From: Frederic Suter Date: Tue, 9 Aug 2016 10:04:19 +0000 (+0200) Subject: fix build X-Git-Tag: v3_14~605 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/45bf16f90c9dc4f28344655ccec87b26f7f3f0ba?ds=sidebyside fix build --- diff --git a/src/simdag/sd_global.cpp b/src/simdag/sd_global.cpp index 3ffd43c684..5950c4e840 100644 --- a/src/simdag/sd_global.cpp +++ b/src/simdag/sd_global.cpp @@ -141,7 +141,7 @@ std::set* simulate(double how_long){ */ const char *__get_state_name(e_SD_task_state_t state){ std::string state_names[7] = { "not scheduled", "schedulable", "scheduled", "runnable","running", "done", "failed" }; - return state_names[(int)log2(state)].data(); + return state_names[static_cast(log2(static_cast(state)))].data(); } /**