Adding Width check to resize

This commit is contained in:
Michael Baier 2026-07-09 12:24:55 +02:00
parent 086c50763d
commit 58fc67ee66
1 changed files with 1 additions and 0 deletions

View File

@ -1109,6 +1109,7 @@ public:
bits_internal()[i] = state; bits_internal()[i] = state;
} }
void resize(int size, RTLIL::State fill) { void resize(int size, RTLIL::State fill) {
log_assert(size >= 0 && size < RTLIL::WIDTH_LIMIT);
bits_internal().resize(size, fill); bits_internal().resize(size, fill);
} }