1
0
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:
Eddie Hung
2018-08-09 21:03:07 -07:00
parent 396cae5118
commit ded8308683

View File

@@ -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) {