diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-03-07 17:19:14 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-03-07 17:19:14 +0100 |
commit | 620d51d9f713d68ebc920b5b1cac59cc176b0b9d (patch) | |
tree | 83f8334ad793abe0f51b6d098ce22e8e01925974 /frontends/ilang | |
parent | f7bd0a523203ed52713ecde56c1cfb89df4d48af (diff) |
Bugfix in ilang frontend autoidx recovery
Diffstat (limited to 'frontends/ilang')
-rw-r--r-- | frontends/ilang/lexer.l | 4 |
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; } } } |