From bf181389775a149e512ca0dca0faf0e90f26f472 Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Tue, 24 Feb 2026 09:36:27 +0100 Subject: [PATCH] Get num of elements from elements() not widthMin() Signed-off-by: Ryszard Rozak --- src/V3Force.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Force.cpp b/src/V3Force.cpp index 2236775bd..701210c23 100644 --- a/src/V3Force.cpp +++ b/src/V3Force.cpp @@ -325,7 +325,7 @@ private: return dtypep; } else { AstNodeDType* const bitDtp = varp->findBitRangeDType( - basicp->declRange(), basicp->widthMin(), VSigning::UNSIGNED); + basicp->declRange(), basicp->elements(), VSigning::UNSIGNED); dtypep->user1p(bitDtp); return bitDtp; }