summaryrefslogtreecommitdiff
path: root/frontends/verilog/parser.y
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-13 15:30:23 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-13 15:30:23 +0100
commit63060dcd2e36b9e0964953214ef01466296f4d29 (patch)
tree607564fc391cf2e1bd92eed5506a6199774b2873 /frontends/verilog/parser.y
parente5b974fa2af7ee372eb7ee4f59322099ee3c1bf9 (diff)
Fixed parsing of "parameter integer"
Diffstat (limited to 'frontends/verilog/parser.y')
-rw-r--r--frontends/verilog/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/verilog/parser.y b/frontends/verilog/parser.y
index 66694898..17f14d54 100644
--- a/frontends/verilog/parser.y
+++ b/frontends/verilog/parser.y
@@ -386,8 +386,8 @@ param_integer:
if (astbuf1->children.size() != 1)
frontend_verilog_yyerror("Syntax error.");
astbuf1->children.push_back(new AstNode(AST_RANGE));
- astbuf1->children[0]->children.push_back(AstNode::mkconst_int(31, true));
- astbuf1->children[0]->children.push_back(AstNode::mkconst_int(0, true));
+ astbuf1->children.back()->children.push_back(AstNode::mkconst_int(31, true));
+ astbuf1->children.back()->children.push_back(AstNode::mkconst_int(0, true));
} | /* empty */;
param_range: