aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/register.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-12-13 13:48:09 +0100
committerClifford Wolf <clifford@clifford.at>2016-12-13 13:48:09 +0100
commit00761de1b7c59868c875312cc4ef330e97a2a4de (patch)
treece795c908c65115698c3448989501e388c16bcfa /kernel/register.cc
parenta61c88f12215eb8bfa1db62aec7c2c95bb3cc702 (diff)
downloadyosys-00761de1b7c59868c875312cc4ef330e97a2a4de.tar.gz
yosys-00761de1b7c59868c875312cc4ef330e97a2a4de.tar.bz2
yosys-00761de1b7c59868c875312cc4ef330e97a2a4de.zip
Bugfix in comment handling
Diffstat (limited to 'kernel/register.cc')
-rw-r--r--kernel/register.cc2
1 files changed, 1 insertions, 1 deletions
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')