From: Clifford Wolf Date: Tue, 13 Dec 2016 12:48:09 +0000 (+0100) Subject: Bugfix in comment handling X-Git-Tag: yosys-0.8~560 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00761de1b7c59868c875312cc4ef330e97a2a4de;p=yosys.git Bugfix in comment handling --- diff --git a/kernel/register.cc b/kernel/register.cc index 7a1d0b44b..983577682 100644 --- a/kernel/register.cc +++ b/kernel/register.cc @@ -173,7 +173,7 @@ void Pass::call(RTLIL::Design *design, std::string command) } while (!tok.empty()) { - if (tok == "#") { + if (tok[0] == '#') { int stop; for (stop = 0; stop < GetSize(cmd_buf); stop++) if (cmd_buf[stop] == '\r' || cmd_buf[stop] == '\n')