Merge pull request #114 from wzab/master

Changes necessary to compile with gcc on Debian/Linux testing
This commit is contained in:
martinwhitaker 2016-07-09 09:04:24 +01:00 committed by GitHub
commit e1ec23d160
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ const VType* calculate_subtype_array(const YYLTYPE&loc, const char*base_name,
Expression*rig = tmpr->right();
return calculate_subtype_array(loc, base_name, scope,
lef,
(tmpr->direction() == ExpRange::range_dir_t::DOWNTO
(tmpr->direction() == ExpRange::DOWNTO
? true
: false),
rig);

View File

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