mirror of https://github.com/KLayout/klayout.git
Safeguard against broken code table in OASIS CBLOCKs
This commit is contained in:
parent
5c7ac018a8
commit
cc796317a0
|
|
@ -166,6 +166,7 @@ public:
|
|||
if (*l > 0) {
|
||||
unsigned int code = next_code [*l]++;
|
||||
code <<= (max_bits - *l);
|
||||
tl_assert (code < (unsigned int) (1 << max_bits));
|
||||
mp_codes [code] = symbol;
|
||||
mp_bitmasks [code] = bitmasks [*l];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue