Fix leading comma it expression only has "others" part

Stop syntax errors caused by things like this:
  (, others => '1')
This commit is contained in:
Nick Gasson 2008-08-18 15:36:11 +01:00
parent 7865264de0
commit d53014a07f
1 changed files with 1 additions and 1 deletions

View File

@ -768,7 +768,7 @@ void vhdl_bit_spec_expr::emit(std::ostream &of, int level) const
}
if (others_) {
of << ", others => ";
of << (bits_.empty() ? "" : ", ") << "others => ";
others_->emit(of, level);
}