mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-28 04:54:43 +00:00
std::vector::resize() not reserve()
This commit is contained in:
@@ -71,7 +71,7 @@ class SAPlacer
|
||||
}
|
||||
diameter = std::max(max_x, max_y) + 1;
|
||||
|
||||
costs.reserve(ctx->nets.size());
|
||||
costs.resize(ctx->nets.size());
|
||||
old_udata.reserve(ctx->nets.size());
|
||||
decltype(NetInfo::udata) n = 0;
|
||||
for (auto &net : ctx->nets) {
|
||||
|
||||
Reference in New Issue
Block a user