Get num of elements from elements() not widthMin()

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2026-02-24 09:36:27 +01:00
parent a1bae47cd3
commit bf18138977
1 changed files with 1 additions and 1 deletions

View File

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