aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-09 21:03:07 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-09 21:03:07 -0700
commitded83086833db10bf9186aa04f90443dbcadf1fb (patch)
treeb76a7984a3853f5d4e264d111fdf1377101b5de0 /common
parent396cae51188a08e6f2909ae42f0be1650918f6a1 (diff)
downloadnextpnr-ded83086833db10bf9186aa04f90443dbcadf1fb.tar.gz
nextpnr-ded83086833db10bf9186aa04f90443dbcadf1fb.tar.bz2
nextpnr-ded83086833db10bf9186aa04f90443dbcadf1fb.zip
std::vector::resize() not reserve()
Diffstat (limited to 'common')
-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) {