mirror of https://github.com/YosysHQ/yosys.git
Adding Width check to resize
This commit is contained in:
parent
086c50763d
commit
58fc67ee66
|
|
@ -1109,6 +1109,7 @@ public:
|
|||
bits_internal()[i] = state;
|
||||
}
|
||||
void resize(int size, RTLIL::State fill) {
|
||||
log_assert(size >= 0 && size < RTLIL::WIDTH_LIMIT);
|
||||
bits_internal().resize(size, fill);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue