mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Fixed cstr_buf for std::string with small string optimization
This commit is contained in:
parent
3a6abc9bf6
commit
4c733301e6
6 changed files with 16 additions and 5 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue