Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use type bool for boolean variables.
[simgrid.git] / src / kernel / lmm / maxmin.hpp
index 4244c99..3f7dd38 100644 (file)
@@ -337,7 +337,7 @@ public:
   /** @brief Check if a variable can be enabled
    * Make sure to set staged_penalty before, if your intent is only to check concurrency
    */
-  int can_enable() const { return staged_penalty_ > 0 && get_min_concurrency_slack() >= concurrency_share_; }
+  bool can_enable() const { return staged_penalty_ > 0 && get_min_concurrency_slack() >= concurrency_share_; }
 
   /* hookup to system */
   boost::intrusive::list_member_hook<> variable_set_hook_;