From: Clifford Wolf Date: Wed, 6 Mar 2013 18:01:08 +0000 (+0100) Subject: Fixed parsing of select #x operator X-Git-Tag: yosys-0.2.0~737 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8960bba9b58a6dc489a924b8033d63a530119a4e;p=yosys.git Fixed parsing of select #x operator --- 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())