From 620d51d9f713d68ebc920b5b1cac59cc176b0b9d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 7 Mar 2014 17:19:14 +0100 Subject: [PATCH] Bugfix in ilang frontend autoidx recovery --- frontends/ilang/lexer.l | 4 ++-- 1 file 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; } } } -- 2.30.2