Fixed parsing of select #x<num> operator

This commit is contained in:
Clifford Wolf 2013-03-06 19:01:08 +01:00
parent f2f3e2cb19
commit 8960bba9b5
1 changed files with 1 additions and 0 deletions

View 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())