vhdlpp: Fixed a problem with types defined as an array of arrays.

This commit is contained in:
Maciej Suminski 2015-08-09 16:41:46 +02:00
parent 428f059c58
commit f3321126ed
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ int VTypeArray::emit_with_dims_(std::ostream&out, bool packed, perm_string name)
list<const VTypeArray*> dims;
const VTypeArray*cur = this;
while (const VTypeArray*sub = dynamic_cast<const VTypeArray*> (cur->etype_)) {
while (const VTypeArray*sub = dynamic_cast<const VTypeArray*> (cur->element_type())) {
dims.push_back(cur);
cur = sub;
}