diff options
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r-- | common/nextpnr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc index 8f172422..0d89b55a 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -135,7 +135,7 @@ Property::Property() : is_string(false), str(""), intval(0) {} Property::Property(int64_t intval, int width) : is_string(false), intval(intval) { - str.resize(width); + str.reserve(width); for (int i = 0; i < width; i++) str.push_back((intval & (1ULL << i)) ? S1 : S0); } |