aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-06-11 13:39:49 +0200
committerClifford Wolf <clifford@clifford.at>2015-06-11 13:39:49 +0200
commit4c733301e6d13b6b13aef4549f262d05007ffc9f (patch)
treef99c4fd79f0371c58ab1502bd49248a941be495b /kernel/rtlil.cc
parent3a6abc9bf6a37f1f098522d80483c836c78ff85b (diff)
downloadyosys-4c733301e6d13b6b13aef4549f262d05007ffc9f.tar.gz
yosys-4c733301e6d13b6b13aef4549f262d05007ffc9f.tar.bz2
yosys-4c733301e6d13b6b13aef4549f262d05007ffc9f.zip
Fixed cstr_buf for std::string with small string optimization
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r--kernel/rtlil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index 373a3a5e6..5deef8507 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -147,7 +147,7 @@ RTLIL::Const RTLIL::Const::from_string(std::string str)
std::string RTLIL::Const::decode_string() const
{
std::string string;
- std::vector <char> string_chars;
+ std::vector<char> string_chars;
for (int i = 0; i < int (bits.size()); i += 8) {
char ch = 0;
for (int j = 0; j < 8 && i + j < int (bits.size()); j++)