Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
maybe long double solve the issue
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Aug 2016 11:14:42 +0000 (13:14 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Aug 2016 11:14:42 +0000 (13:14 +0200)
src/simdag/sd_global.cpp

index 5950c4e..e29ad4b 100644 (file)
@@ -141,7 +141,7 @@ std::set<SD_task_t>* 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" };
  */
 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<int>(log2(static_cast<double>(state)))].data();
+  return state_names[static_cast<int>(log2(static_cast<long double>(state)))].data();
 }
 
 /**
 }
 
 /**