Fix leading comma it expression only has "others" part
Stop syntax errors caused by things like this: (, others => '1')
This commit is contained in:
parent
7865264de0
commit
d53014a07f
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue