3
0
Fork 0
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:
Akash Levy 2025-09-09 04:47:28 -07:00 committed by GitHub
parent b7a4ce8b42
commit 6fc38e15a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());