3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-13 01:16:16 +00:00

Address warnings

- Setting default values
- Fixing mismatched types
- Guarding unused var
This commit is contained in:
Krystine Sherwin 2024-08-16 04:30:31 +12:00
parent ceba889641
commit 7b47f645d7
No known key found for this signature in database
4 changed files with 9 additions and 5 deletions

View file

@ -832,7 +832,7 @@ std::string Fmt::render() const
}
} else log_abort();
if (part.justify == FmtPart::NUMERIC && part.group && part.padding == '0') {
int group_size = part.base == 10 ? 3 : 4;
size_t group_size = part.base == 10 ? 3 : 4;
while (prefix.size() + buf.size() < part.width) {
if (buf.size() % (group_size + 1) == group_size)
buf += '_';