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:
parent
cadfb2e4eb
commit
9da9ed243a
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue