V0.9: Assert if the vcdid overflows.

It should never happen, but if it does assert vs generating an
invalid VCD identifier.
This commit is contained in:
Cary R 2010-11-16 17:25:52 -08:00 committed by Stephen Williams
parent f7e0f622fa
commit 2e4810ac8a
1 changed files with 3 additions and 1 deletions

View File

@ -75,9 +75,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)