Define the mode when testing the width of a wait statement argument.

If a wait statement has a constant argument then the mode must be defined
before test_width() is called since the current mode is used in the
PENumber test_width routine.
This commit is contained in:
Cary R 2011-10-05 09:49:00 -07:00 committed by Stephen Williams
parent e22c692656
commit 50a2f55364
1 changed files with 1 additions and 1 deletions

View File

@ -3500,7 +3500,7 @@ NetProc* PEventStatement::elaborate_wait(Design*des, NetScope*scope,
/* Elaborate wait expression. Don't eval yet, we will do that
shortly, after we apply a reduction or. */
PExpr::width_mode_t mode;
PExpr::width_mode_t mode = PExpr::SIZED;
pe->test_width(des, scope, mode);
NetExpr*expr = pe->elaborate_expr(des, scope, pe->expr_width(),
PExpr::NO_FLAGS);