mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-17 20:55:45 +00:00
Update passes/silimate/opt_balance_tree.cc
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
b7a4ce8b42
commit
6fc38e15a1
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ struct OptBalanceTreeWorker {
|
|||
}
|
||||
|
||||
// Recursive case: split sources into two groups and create subtrees
|
||||
int mid = ceil(sources.size() / 2.0);
|
||||
int mid = (sources.size() + 1) / 2;
|
||||
vector<SigSpec> left_sources(sources.begin(), sources.begin() + mid);
|
||||
vector<SigSpec> right_sources(sources.begin() + mid, sources.end());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue