Fix down parameter out of bound message

This commit is contained in:
Cary R 2021-01-30 00:39:14 -08:00
parent 0c12344b27
commit a446c34d10
1 changed files with 4 additions and 2 deletions

View File

@ -5215,8 +5215,10 @@ static void warn_param_ob(long par_msv, long par_lsv, bool defined,
/* Is this a select after the end of the parameter? */
if (par_base + (long)wid - 1 > par_max) {
cerr << info->get_fileline() << ": warning: " << name << "["
<< par_base << "+:" << wid << "] is selecting after vector."
<< endl;
<< par_base;
if (up) cerr << "+:";
else cerr << "-:";
cerr << wid << "] is selecting after vector." << endl;
}
}