mirror of https://github.com/YosysHQ/yosys.git
Compare commits
3 Commits
fd32b58502
...
50bc8c8e4d
Author | SHA1 | Date |
---|---|---|
KrystalDelusion | 50bc8c8e4d | |
Krystine Sherwin | 260cc42c2f | |
Krystine Sherwin | 94b44a37b2 |
|
@ -480,7 +480,6 @@ std::string RTLIL::Const::decode_string() const
|
|||
ch |= 1 << j;
|
||||
}
|
||||
}
|
||||
if (ch != 0)
|
||||
s.append({ch});
|
||||
}
|
||||
i -= 8;
|
||||
|
@ -491,10 +490,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…
Reference in New Issue