From 57f2fe77ea37caac08d168a13d80414e80c5fdca Mon Sep 17 00:00:00 2001 From: Todd Strader Date: Tue, 1 Dec 2015 18:23:11 -0500 Subject: [PATCH] Fix cell [#] to mean # cells. Signed-off-by: Wilson Snyder --- src/verilog.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/verilog.y b/src/verilog.y index a9aa6c9b3..8a82c7d7a 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -2060,7 +2060,7 @@ instnameParen: instRangeE: /* empty */ { $$ = NULL; } - | '[' constExpr ']' { $$ = new AstRange($1,$2,$2->cloneTree(true)); } + | '[' constExpr ']' { $$ = new AstRange($1,new AstConst($1,0),$2); } | '[' constExpr ':' constExpr ']' { $$ = new AstRange($1,$2,$4); } ;