From 8960bba9b58a6dc489a924b8033d63a530119a4e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 6 Mar 2013 19:01:08 +0100 Subject: [PATCH] Fixed parsing of select #x operator --- kernel/select.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/select.cc b/kernel/select.cc index 3a3c3013f..f2857d1bf 100644 --- a/kernel/select.cc +++ b/kernel/select.cc @@ -358,6 +358,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg) if (endpos == std::string::npos) endpos = arg.size(); levels = atoi(arg.substr(pos, endpos-pos).c_str()); + pos = endpos; } while (pos < arg.size()) { if (arg[pos] != ':' || pos+1 == arg.size()) -- 2.30.2