From: Frederic Suter Date: Tue, 9 Aug 2016 11:14:42 +0000 (+0200) Subject: maybe long double solve the issue X-Git-Tag: v3_14~603 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/af3b41997d9ed2ef3f15ae2bfe43b5f83ce77d90?hp=15de54cff47d4655bc84377fcd3d45cfe2836736 maybe long double solve the issue --- diff --git a/src/simdag/sd_global.cpp b/src/simdag/sd_global.cpp index 5950c4e840..e29ad4ba95 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[static_cast(log2(static_cast(state)))].data(); + return state_names[static_cast(log2(static_cast(state)))].data(); } /**