From: Augustin Degomme Date: Fri, 12 Sep 2014 08:36:50 +0000 (+0200) Subject: Fix issue with precision in 394ea1fb (on 32 bits platforms mainly) X-Git-Tag: v3_12~820 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/240eceff10fff3d850163430e54782318c79a17e Fix issue with precision in 394ea1fb (on 32 bits platforms mainly) --- diff --git a/src/surf/maxmin.cpp b/src/surf/maxmin.cpp index 7310cb0802..cd74d2a97d 100644 --- a/src/surf/maxmin.cpp +++ b/src/surf/maxmin.cpp @@ -709,7 +709,7 @@ void lmm_solve(lmm_system_t sys) XBT_DEBUG("Setting %p (%d) value to %f\n", var, var->id_int, var->value); } else { //If there exist a variable that can reach its bound, only update it (and other with the same bound) for now. - if (min_bound == var->bound*var->weight) { + if (double_equals(min_bound, var->bound*var->weight, sg_maxmin_precision)){ var->value = var->bound; XBT_DEBUG("Setting %p (%d) value to %f\n", var, var->id_int, var->value); }