Fixed parsing of select #x<num> operator
authorClifford Wolf <clifford@clifford.at>
Wed, 6 Mar 2013 18:01:08 +0000 (19:01 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 6 Mar 2013 18:01:08 +0000 (19:01 +0100)
kernel/select.cc

index 3a3c3013f8b6b49af8b23329a86b609b8727ac9a..f2857d1bfb26af0ff2769a4dd847952dd269ba35 100644 (file)
@@ -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())