mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 15:37:59 +00:00
Fix typos
This commit is contained in:
parent
e5be9ff871
commit
234fcf1724
3 changed files with 9 additions and 9 deletions
|
@ -283,13 +283,13 @@ namespace RTLIL
|
|||
bool begins_with(const char* prefix) const {
|
||||
size_t len = strlen(prefix);
|
||||
if (size() < len) return false;
|
||||
return compare(0, len, prefix);
|
||||
return compare(0, len, prefix) == 0;
|
||||
}
|
||||
|
||||
bool ends_with(const char* suffix) const {
|
||||
size_t len = strlen(suffix);
|
||||
if (size() < len) return false;
|
||||
return compare(size()-len, len, suffix);
|
||||
return compare(size()-len, len, suffix) == 0;
|
||||
}
|
||||
|
||||
size_t size() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue