From: Arnaud Giersch Date: Sat, 7 May 2022 07:20:42 +0000 (+0200) Subject: Remove superfluous parentheses. X-Git-Tag: v3.32~266 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ce5fe3d490dc5e72b7c9b85bd55da38743d4dfa3 Remove superfluous parentheses. --- diff --git a/src/kernel/lmm/bmf.cpp b/src/kernel/lmm/bmf.cpp index af1b5ff08d..816e5e4c40 100644 --- a/src/kernel/lmm/bmf.cpp +++ b/src/kernel/lmm/bmf.cpp @@ -261,9 +261,9 @@ bool BmfSolver::get_alloc(const Eigen::VectorXd& fair_sharing, const allocation_ } /* Given that the priority may artificially increase the rate, * we need to check that the bound given by user respects the resource capacity C_ */ - if (double bound = initial ? -1 : phi_[player_idx]; - (bound > 0 && bound * A_(cnst_idx, player_idx) < C_[cnst_idx] && - double_positive(min_rate - bound, cfg_bmf_precision))) { + if (double bound = initial ? -1 : phi_[player_idx]; bound > 0 && + bound * A_(cnst_idx, player_idx) < C_[cnst_idx] && + double_positive(min_rate - bound, cfg_bmf_precision)) { selected_resource = NO_RESOURCE; min_rate = bound; }