From ded83086833db10bf9186aa04f90443dbcadf1fb Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 9 Aug 2018 21:03:07 -0700 Subject: std::vector::resize() not reserve() --- common/placer1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') 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) { -- cgit v1.2.3