From 9da9ed243a740a8a34b3940b076978dafcbe4609 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 19 Dec 2008 14:45:14 -0800 Subject: [PATCH] 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. --- elab_expr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elab_expr.cc b/elab_expr.cc index 39360ab30..6a2cd962b 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -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();