diff --git a/vhdlpp/expression_emit.cc b/vhdlpp/expression_emit.cc index 1f24ba586..3454c7772 100644 --- a/vhdlpp/expression_emit.cc +++ b/vhdlpp/expression_emit.cc @@ -1089,7 +1089,7 @@ int ExpRange::emit(ostream&out, Entity*ent, ScopeBase*scope) const errors += right_->emit(out, ent, scope); } - return 0; + return errors; } int ExpDelay::emit(ostream&out, Entity*ent, ScopeBase*scope) const