Bugfix in ilang frontend autoidx recovery

This commit is contained in:
Clifford Wolf 2014-03-07 17:19:14 +01:00
parent f7bd0a5232
commit 620d51d9f7
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}