diff --git a/Changes b/Changes index 557bddc76..75cf69c08 100644 --- a/Changes +++ b/Changes @@ -15,6 +15,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix error when no modules in $unit, bug1381. [Al Grant] +**** Fix missing too many digits warning, bug1380. [Jonathan Kimmitt] + * Verilator 4.008 2018-12-01 diff --git a/src/V3Number.cpp b/src/V3Number.cpp index ce68f79b0..0532d42d0 100644 --- a/src/V3Number.cpp +++ b/src/V3Number.cpp @@ -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 "<