Fix broken "inherits dimensions from var/net" warning.

(cherry picked from commit 12c39aa4bb)
This commit is contained in:
Stephen Williams 2016-02-10 10:56:14 -08:00
parent 1ea8a13bf8
commit 1a5ae96540
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ NetNet* PWire::elaborate_sig(Design*des, NetScope*scope) const
if (warn_implicit_dimensions
&& port_set_ && net_set_
&& port_.empty() && net_.empty()) {
&& port_.empty() && !net_.empty()) {
cerr << get_fileline() << ": warning: "
<< "Port declaration of " << basename()
<< " inherits dimensions from var/net." << endl;