Update vtype.cc

Fixed bug described in #110
This commit is contained in:
anon 2016-06-13 00:55:28 +02:00 committed by GitHub
parent 8234f1845d
commit 49515ff62b
1 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,10 @@ VTypeArray::VTypeArray(const VType*element, std::list<ExpRange*>*r, bool sv)
for (size_t idx = 0 ; idx < ranges_.size() ; idx += 1) {
ExpRange*curp = r->front();
r->pop_front();
ranges_[idx] = range_t(curp->msb(), curp->lsb(), curp->direction());
ranges_[idx] = range_t(curp->msb(), curp->lsb(),
(curp->direction() == ExpRange::range_dir_t::DOWNTO
? true
: false));
}
}