]> granicus.if.org Git - re2c/commitdiff
Fixed checking duplicates when creating tag commands.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 7 Apr 2017 21:36:20 +0000 (22:36 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 7 Apr 2017 21:36:20 +0000 (22:36 +0100)
re2c/src/dfa/closure.cc

index 488c0dc6aa202ca46f3ee7b45195ef31e5f513ed..3a7feaac48b26d2832cee3e4bf1bb9d2a4517054 100644 (file)
@@ -262,7 +262,7 @@ tcmd_t *generate_versions(closure_t &clos, const std::vector<Tag> &tags,
                        // add action unless already have an identical one
                        if (fixed(tag) || (ls[t] && !history(tag))) continue;
                        for (p = cmd; p; p = p->next) {
-                               if (p->lhs == abs(m) && p->rhs == u && p->pred == h) break;
+                               if (p->lhs == abs(m) && p->rhs == u && p->pred == abs(h)) break;
                        }
                        if (!p) cmd = tcpool.make_tcmd(cmd, abs(m), u, abs(h));
                }