From 00761de1b7c59868c875312cc4ef330e97a2a4de Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 13 Dec 2016 13:48:09 +0100 Subject: [PATCH] Bugfix in comment handling --- kernel/register.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.30.2