Get num of elements from elements() not widthMin()
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
a1bae47cd3
commit
bf18138977
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue