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; }