Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix problem when comparing two doubles.
[simgrid.git] / src / surf / cpu_im.c
index 0a65e33..2b3b5be 100644 (file)
@@ -272,7 +272,7 @@ static void update_actions_state(double now, double delta)
   surf_action_cpu_Cas01_im_t action;
 
   while ((xbt_heap_size(action_heap) > 0)
-         && (xbt_heap_maxkey(action_heap) <= now)) {
+         && (double_equals(xbt_heap_maxkey(action_heap), now))) {
     action = xbt_heap_pop(action_heap);
     DEBUG1("Action %p: finish", action);
     GENERIC_ACTION(action).finish = surf_get_clock();