mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 04:13:39 +00:00
Merge 260cc42c2f
into c21cd300a0
This commit is contained in:
commit
7bd3c3b4d3
1 changed files with 6 additions and 5 deletions
|
@ -512,7 +512,6 @@ std::string RTLIL::Const::decode_string() const
|
|||
ch |= 1 << j;
|
||||
}
|
||||
}
|
||||
if (ch != 0)
|
||||
s.append({ch});
|
||||
}
|
||||
i -= 8;
|
||||
|
@ -523,10 +522,12 @@ std::string RTLIL::Const::decode_string() const
|
|||
ch |= 1 << j;
|
||||
}
|
||||
}
|
||||
if (ch != 0)
|
||||
s.append({ch});
|
||||
}
|
||||
return s;
|
||||
auto first_char = s.find_first_not_of('\0');
|
||||
if (first_char != std::string::npos)
|
||||
return s.substr(first_char);
|
||||
else return s;
|
||||
}
|
||||
|
||||
int RTLIL::Const::size() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue