Fix missing too many digits warning, bug1380.

This commit is contained in:
Wilson Snyder
2019-01-03 19:03:27 -05:00
parent 0198a2e9f3
commit e8636f987f
4 changed files with 9 additions and 4 deletions
+3 -4
View File
@@ -177,10 +177,9 @@ V3Number::V3Number(FileLine* fileline, const char* sourcep) {
}
else {
// Convert bin/octal number to hex
for (const char* cp=value_startp+strlen(value_startp)-1;
(cp>=value_startp
&& obit<=width());
cp--) {
for (const char* cp=value_startp+strlen(value_startp)-1;
cp >= value_startp;
cp--) {
if (*cp!='_' && *cp!='0' && obit>=width()) {
m_fileline->v3error("Too many digits for "<<width()<<" bit number: "<<sourcep);
break;