Make parameter up index use the real value not a pointer to the value.

When the parameter up index was being reworked someone mistakenly
used the pointer value instead of the actual value in the MSB/LSB
comparison. This obviously could give incorrect results.
This commit is contained in:
Cary R 2008-12-19 14:45:14 -08:00 committed by Stephen Williams
parent cadfb2e4eb
commit 9da9ed243a
1 changed files with 1 additions and 1 deletions

View File

@ -2173,7 +2173,7 @@ NetExpr* PEIdent::elaborate_expr_param_idx_up_(Design*des, NetScope*scope,
return result_ex;
}
if ((par_msb < par_lsb) && (wid>1))
if ((par_msv < par_lsv) && (wid>1))
base = make_add_expr(base, 1-(long)wid);
NetExpr*tmp = par->dup_expr();