diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index 719094c63..bf1da3a77 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -1000,7 +1000,7 @@ class ConstraintExprVisitor final : public VNVisitor { AstCStmt* const bufDeclp = new AstCStmt{fl, "char __Vn[256];\n"}; ifNonNullp->addThensp(bufDeclp); - // 32-bit index → 8 hex chars for SMT name formatting + // 32-bit index hex chars for SMT name formatting constexpr int idxWidth = 32; const int fmtWidth = VL_WORDS_I(idxWidth) * 8; diff --git a/test_regress/t/t_dist_whitespace.py b/test_regress/t/t_dist_whitespace.py index 69286073c..2b4fa35f3 100755 --- a/test_regress/t/t_dist_whitespace.py +++ b/test_regress/t/t_dist_whitespace.py @@ -89,9 +89,10 @@ for filename in sorted(files.keys()): # Unicode checker; should this be done in another file? # No way to auto-fix. unicode_exempt = re.search(Unicode_Exempt_Re, filename) - m = re.search(r'([^ \t\r\n\x20-\x7e])', contents) + m = re.search(r'(([^ \t\r\n\x20-\x7e]).*)', contents) if not unicode_exempt and m: - warns[filename] = "Warning: non-ASCII contents '" + m.group(1) + "' in " + filename + warns[filename] = "Warning: non-ASCII contents '" + m.group(2) + "' at '" + m.group( + 1) + "' in " + filename fcount += 1