Skip to content

Commit

Permalink
Keep expression width when evaluating expressions ahead of time.
Browse files Browse the repository at this point in the history
Added 'expr_wid' parameter to calls to 'eval_expr()' within
PEBinary::elaborate_eval_expr_base_()'.  This makes a specific problem
go away and may even be the correct thing to do.
  • Loading branch information
wpd authored and steveicarus committed Aug 7, 2010
1 parent f23a56e commit 2ffc2d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elab_expr.cc
Expand Up @@ -314,8 +314,8 @@ NetExpr* PEBinary::elaborate_eval_expr_base_(Design*des,
{
/* If either expression can be evaluated ahead of time, then
do so. This can prove helpful later. */
eval_expr(lp);
eval_expr(rp);
eval_expr(lp, expr_wid);
eval_expr(rp, expr_wid);

return elaborate_expr_base_(des, lp, rp, expr_wid);
}
Expand Down

0 comments on commit 2ffc2d3

Please sign in to comment.