Assert if the vcdid generation overflows.
It should never happen, but if it does assert vs generating an invalid VCD identifier.
This commit is contained in:
parent
e7d7dec713
commit
bebdcd5adf
|
|
@ -76,9 +76,11 @@ static void gen_new_vcd_id(void)
|
|||
v /= 94;
|
||||
if(!v) {
|
||||
vcdid[i+1] = '\0';
|
||||
break;
|
||||
return;
|
||||
}
|
||||
}
|
||||
// This should never happen since 94**7 is a lot if identifiers!
|
||||
assert(0);
|
||||
}
|
||||
|
||||
static char *truncate_bitvec(char *s)
|
||||
|
|
|
|||
Loading…
Reference in New Issue