aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/placer1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index 2dafb069..88f2fc47 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -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) {