From b7bd5956ea5e40f9ef59550b766d3e85c80cf161 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 4 Aug 2019 14:48:17 -0400 Subject: [PATCH] Concats should be unsigned --- src/V3Const.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Const.cpp b/src/V3Const.cpp index d65e02996..9439f3b95 100644 --- a/src/V3Const.cpp +++ b/src/V3Const.cpp @@ -833,7 +833,7 @@ private: // use the lhs to replace the parent concat lp->lhsp()->replaceWith(newlp); lp->rhsp()->replaceWith(newrp); - lp->dtypeChgWidthSigned(newlp->width(), newlp->width(), AstNumeric::SIGNED); + lp->dtypeChgWidthSigned(newlp->width(), newlp->width(), AstNumeric::UNSIGNED); UINFO(5, "merged "<< nodep <unlinkFrBack()->deleteTree(); VL_DANGLING(rp); nodep->replaceWith(lp->unlinkFrBack()); nodep->deleteTree(); VL_DANGLING(nodep);