mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 01:16:16 +00:00
fmt: fix another overrun
This commit is contained in:
parent
28bd3a4b5d
commit
3c8f84b70b
1 changed files with 2 additions and 1 deletions
|
@ -107,9 +107,10 @@ void Fmt::parse_rtlil(RTLIL::Cell *cell) {
|
||||||
} else {
|
} else {
|
||||||
log_assert(false && "Unexpected character in format substitution");
|
log_assert(false && "Unexpected character in format substitution");
|
||||||
}
|
}
|
||||||
|
++i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (++i == fmt.size())
|
if (i == fmt.size())
|
||||||
log_assert(false && "Unexpected end in format substitution");
|
log_assert(false && "Unexpected end in format substitution");
|
||||||
|
|
||||||
if (part.type == FmtPart::INTEGER) {
|
if (part.type == FmtPart::INTEGER) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue