From b553502d8a927f0b41d789b158bef8eea1fd826a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 10 Jun 2025 08:13:34 -0400 Subject: [PATCH] Fix number dumps to show 'null' --- src/V3Number.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/V3Number.cpp b/src/V3Number.cpp index b73ea73e9..d8cbf465f 100644 --- a/src/V3Number.cpp +++ b/src/V3Number.cpp @@ -533,12 +533,9 @@ V3Number& V3Number::setMask(int nbits, int lsb) { string V3Number::ascii(bool prefixed, bool cleanVerilog) const VL_MT_STABLE { // Correct number of zero bits/width matters + if (is1Step()) return "1step"; + if (isNull()) return "null"; std::ostringstream out; - - if (is1Step()) { - out << "1step"; - return out.str(); - } if (isDouble()) { out.precision(17); if (VL_UNCOVERABLE(width() != 64)) {