mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-09-08 04:41:06 +02:00
Adding Width check to resize
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user