summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-03-07 17:19:14 +0100
committerClifford Wolf <clifford@clifford.at>2014-03-07 17:19:14 +0100
commit620d51d9f713d68ebc920b5b1cac59cc176b0b9d (patch)
tree83f8334ad793abe0f51b6d098ce22e8e01925974 /frontends
parentf7bd0a523203ed52713ecde56c1cfb89df4d48af (diff)
Bugfix in ilang frontend autoidx recovery
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ilang/lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ilang/lexer.l b/frontends/ilang/lexer.l
index 5da8ce67..00091927 100644
--- a/frontends/ilang/lexer.l
+++ b/frontends/ilang/lexer.l
@@ -131,8 +131,8 @@ void update_autoidx(const char *p)
q++;
if ((q - p) < 10) {
int idx = atoi(p);
- if (idx > RTLIL::autoidx)
- RTLIL::autoidx = idx;
+ if (idx >= RTLIL::autoidx)
+ RTLIL::autoidx = idx+1;
}
}
}