Changes necessary to compile with gcc on Debian/Linux testing

This commit is contained in:
Wojciech M. Zabolotny 2016-07-07 23:01:02 +02:00
parent f03e9d4180
commit 2c52fd65d3
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));
}