Skip to content

Commit 0877456

Browse files
committed
est: minor fixes
Signed-off-by: Eder Monteiro <[email protected]>
1 parent c09ecad commit 0877456

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/est/src/EstimateParasitics.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ void EstimateParasitics::insertViaResistances(odb::dbTechLayer* pin_layer,
970970
const int cut_layer_idx = pin_layer_idx < tree_layer_idx
971971
? pin_layer_idx + 1
972972
: pin_layer_idx - 1;
973-
double cut_res
973+
const double cut_res
974974
= std::max(layer_res_[cut_layer_idx][corner->index()], 1.0e-3);
975975
parasitics_->makeResistor(
976976
parasitic, resistor_id++, cut_res, pin_node, node);
@@ -991,7 +991,8 @@ void EstimateParasitics::insertViaResistances(odb::dbTechLayer* pin_layer,
991991
ParasiticNode* mid_node = parasitics_->ensureParasiticNode(
992992
parasitic, net, ++max_node_index, network_);
993993

994-
double cut_res = std::max(layer_res_[layer_idx][corner->index()], 1.0e-3);
994+
const double cut_res
995+
= std::max(layer_res_[layer_idx][corner->index()], 1.0e-3);
995996

996997
ParasiticNode* from_node = prev_node;
997998
ParasiticNode* to_node = mid_node;

src/est/src/SteinerTree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int SteinerTree::getMaxIndex() const
8585
for (int i = 0; i < branchCount(); i++) {
8686
const stt::Branch& branch_pt = tree_.branch[i];
8787
max_index = std::max(max_index, i);
88-
max_index = std::max(max_index, branch_pt.n);
88+
max_index = std::max({max_index, branch_pt.n});
8989
}
9090

9191
return max_index;

0 commit comments

Comments
 (0)