summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-06 19:01:08 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-06 19:01:08 +0100
commit8960bba9b58a6dc489a924b8033d63a530119a4e (patch)
treee74052a040f8f70367651b03e13ac710e5a23103 /kernel
parentf2f3e2cb1971e7b471955c104d88ff470f3ba5dc (diff)
Fixed parsing of select #x<num> operator
Diffstat (limited to 'kernel')
-rw-r--r--kernel/select.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/select.cc b/kernel/select.cc
index 3a3c3013..f2857d1b 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())