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 | |
parent | f7bd0a523203ed52713ecde56c1cfb89df4d48af (diff) | |
download | yosys-620d51d9f713d68ebc920b5b1cac59cc176b0b9d.tar.gz yosys-620d51d9f713d68ebc920b5b1cac59cc176b0b9d.tar.bz2 yosys-620d51d9f713d68ebc920b5b1cac59cc176b0b9d.zip |
Bugfix in ilang frontend autoidx recovery
Diffstat (limited to 'frontends')
-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 5da8ce675..000919275 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; } } } |