Bugfix in comment handling
authorClifford Wolf <clifford@clifford.at>
Tue, 13 Dec 2016 12:48:09 +0000 (13:48 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 13 Dec 2016 12:48:09 +0000 (13:48 +0100)
kernel/register.cc

index 7a1d0b44b4ec839fa7b5004e43ae2c6662bead9b..983577682121c7b03d8cf87bf1a2a31fc82a9a84 100644 (file)
@@ -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')