Add ENUMITEMWIDTH error, and apply to X-extended and ranged values.

This commit is contained in:
Wilson Snyder
2025-07-12 14:14:17 -04:00
parent cefe1845df
commit 2f199f20cf
9 changed files with 77 additions and 20 deletions
+1 -1
View File
@@ -1188,7 +1188,7 @@ uint32_t V3Number::countOnes() const {
uint32_t V3Number::mostSetBitP1() const {
for (int bit = width() - 1; bit >= 0; bit--) {
if (bitIs1(bit)) return bit + 1;
if (!bitIs0(bit)) return bit + 1;
}
return 0;
}