diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-09 21:03:07 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-09 21:03:07 -0700 |
commit | ded83086833db10bf9186aa04f90443dbcadf1fb (patch) | |
tree | b76a7984a3853f5d4e264d111fdf1377101b5de0 | |
parent | 396cae51188a08e6f2909ae42f0be1650918f6a1 (diff) | |
download | nextpnr-ded83086833db10bf9186aa04f90443dbcadf1fb.tar.gz nextpnr-ded83086833db10bf9186aa04f90443dbcadf1fb.tar.bz2 nextpnr-ded83086833db10bf9186aa04f90443dbcadf1fb.zip |
std::vector::resize() not reserve()
-rw-r--r-- | common/placer1.cc | 2 |
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) { |